mirror of
https://github.com/rclone/rclone.git
synced 2025-08-19 01:46:31 +02:00
vfs: convert vfs options to new style
This also - move in use options (Opt) from vfsflags to vfscommon - change os.FileMode to vfscommon.FileMode in parameters - rework vfscommon.FileMode and add tests
This commit is contained in:
@@ -157,7 +157,7 @@ func (d *Dir) IsDir() bool {
|
||||
|
||||
// Mode bits of the directory - satisfies Node interface
|
||||
func (d *Dir) Mode() (mode os.FileMode) {
|
||||
return d.vfs.Opt.DirPerms
|
||||
return os.FileMode(d.vfs.Opt.DirPerms)
|
||||
}
|
||||
|
||||
// Name (base) of the directory - satisfies Node interface
|
||||
|
Reference in New Issue
Block a user