diff options
author | Jakob Unterwurzacher | 2015-12-19 13:21:15 +0100 |
---|---|---|
committer | Jakob Unterwurzacher | 2015-12-19 13:21:15 +0100 |
commit | 88826dc51d7919ef8b190c079955230e653323e2 (patch) | |
tree | 73baf5d51575200afd4aaa331aff0a3b281b87a5 /pathfs_frontend/file_holes.go | |
parent | 00a712b4d1e68bb3c156eb8f97fbb89d684a7e92 (diff) |
diriv: handle directory rename over directory
If an empty directory is overwritten we will always get
ENOTEMPTY as the "empty" directory will still contain gocryptfs.diriv.
Handle that case by removing the target directory and trying again.
Fixes issue #10
Diffstat (limited to 'pathfs_frontend/file_holes.go')
-rw-r--r-- | pathfs_frontend/file_holes.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pathfs_frontend/file_holes.go b/pathfs_frontend/file_holes.go index 3db4828..fd2e2c1 100644 --- a/pathfs_frontend/file_holes.go +++ b/pathfs_frontend/file_holes.go @@ -1,5 +1,7 @@ package pathfs_frontend +// Helper functions for sparse files (files with holes) + import ( "github.com/hanwen/go-fuse/fuse" "github.com/rfjakob/gocryptfs/cryptfs" |