The issue probably is that resources context Move uses os.Rename system call (resource/context/context.go:#139:
func (deps contextDeps) Move(target, source string) error {
// Note that we follow the io.Copy() argument arder here
// (os.Rename does not).
return os.Rename(source, target)
}
This under ubuntu does not support moving files across file systems. From man 2 rename:
EXDEV oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple
points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.)
The issue probably is that resources context Move uses os.Rename system call (resource/ context/ context. go:#139:
func (deps contextDeps) Move(target, source string) error {
// Note that we follow the io.Copy() argument arder here
// (os.Rename does not).
return os.Rename(source, target)
}
This under ubuntu does not support moving files across file systems. From man 2 rename:
EXDEV oldpath and newpath are not on the same mounted filesystem. (Linux permits a filesystem to be mounted at multiple
points, but rename() does not work across different mount points, even if the same filesystem is mounted on both.)