mirror of
https://github.com/OpenListTeam/OpenList.git
synced 2025-11-25 03:15:19 +08:00
* fix(local): assign non-CoW copy requests to the task module * fix build * fix cross device
17 lines
357 B
Go
17 lines
357 B
Go
//go:build !windows && !plan9 && !netbsd && !aix && !illumos && !solaris && !js
|
|
|
|
package local
|
|
|
|
import (
|
|
"os"
|
|
"path/filepath"
|
|
"syscall"
|
|
)
|
|
|
|
func copyNamedPipe(dstPath string, mode os.FileMode, dirMode os.FileMode) error {
|
|
if err := os.MkdirAll(filepath.Dir(dstPath), dirMode); err != nil {
|
|
return err
|
|
}
|
|
return syscall.Mkfifo(dstPath, uint32(mode))
|
|
}
|