mount: implement renaming directories - fixes #954

This also fixes various caching issues renaming files.
This commit is contained in:
Nick Craig-Wood
2017-02-06 21:17:45 +00:00
parent f3c5745468
commit ef604f6100
4 changed files with 86 additions and 55 deletions

View File

@@ -85,10 +85,12 @@ func mount(f fs.Fs, mountpoint string) (<-chan error, error) {
f: f,
}
server := fusefs.New(c, nil)
// Serve the mount point in the background returning error to errChan
errChan := make(chan error, 1)
go func() {
err := fusefs.Serve(c, filesys)
err := server.Serve(filesys)
closeErr := c.Close()
if err == nil {
err = closeErr