aboutsummaryrefslogtreecommitdiff
path: root/weed/filesys/wfs.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-16 00:39:21 -0800
committerchrislu <chris.lu@gmail.com>2022-02-16 00:39:21 -0800
commit37e8fce8414232885a8071bd931535870be6e2d6 (patch)
tree916b62a4d27f782e02c79d1fc09a1ad5d862bc27 /weed/filesys/wfs.go
parentd4dc00471a4390d8f299fbb286fe0b65596712e6 (diff)
downloadseaweedfs-37e8fce8414232885a8071bd931535870be6e2d6.tar.xz
seaweedfs-37e8fce8414232885a8071bd931535870be6e2d6.zip
clean up cache on exit
Diffstat (limited to 'weed/filesys/wfs.go')
-rw-r--r--weed/filesys/wfs.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/weed/filesys/wfs.go b/weed/filesys/wfs.go
index 7ee9a10ea..2a8ecd235 100644
--- a/weed/filesys/wfs.go
+++ b/weed/filesys/wfs.go
@@ -125,6 +125,7 @@ func NewSeaweedFileSystem(option *Option) *WFS {
})
grace.OnInterrupt(func() {
wfs.metaCache.Shutdown()
+ os.RemoveAll(option.getUniqueCacheDir())
})
wfs.root = &Dir{name: wfs.option.FilerMountRootPath, wfs: wfs, id: 1}