mirror of
https://github.com/rclone/rclone.git
synced 2025-06-30 20:40:57 +02:00
vfs: Make file handles compatible with OS
* Implement directory handles * Unify OpenFile * Add all the methods to match *os.File * Add StatParent and Rename methods to VFS
This commit is contained in:
@ -19,6 +19,7 @@ const (
|
||||
ESPIPE
|
||||
EBADF
|
||||
EROFS
|
||||
ENOSYS
|
||||
)
|
||||
|
||||
// Errors which have exact counterparts in os
|
||||
@ -33,6 +34,7 @@ var errorNames = []string{
|
||||
ESPIPE: "Illegal seek",
|
||||
EBADF: "Bad file descriptor",
|
||||
EROFS: "Read only file system",
|
||||
ENOSYS: "Function not implemented",
|
||||
}
|
||||
|
||||
// Error renders the error as a string
|
||||
|
Reference in New Issue
Block a user