aboutsummaryrefslogtreecommitdiff
path: root/weed/mount/weedfs_dir_mkrm.go
diff options
context:
space:
mode:
authorchrislu <chris.lu@gmail.com>2022-02-13 04:22:02 -0800
committerchrislu <chris.lu@gmail.com>2022-02-13 04:22:02 -0800
commita1ef0e48a982ade0ca6a6e288e955422c61f8c37 (patch)
tree39f143bd1b901315ea1975c3738092ce191914b9 /weed/mount/weedfs_dir_mkrm.go
parentbe40ff6048f8b6005db9cff54f074b3ab5134abb (diff)
downloadseaweedfs-a1ef0e48a982ade0ca6a6e288e955422c61f8c37.tar.xz
seaweedfs-a1ef0e48a982ade0ca6a6e288e955422c61f8c37.zip
doc
Diffstat (limited to 'weed/mount/weedfs_dir_mkrm.go')
-rw-r--r--weed/mount/weedfs_dir_mkrm.go7
1 files changed, 7 insertions, 0 deletions
diff --git a/weed/mount/weedfs_dir_mkrm.go b/weed/mount/weedfs_dir_mkrm.go
index 63fe34f91..fb854b77e 100644
--- a/weed/mount/weedfs_dir_mkrm.go
+++ b/weed/mount/weedfs_dir_mkrm.go
@@ -13,6 +13,12 @@ import (
"time"
)
+/** Create a directory
+ *
+ * Note that the mode argument may not have the type specification
+ * bits set, i.e. S_ISDIR(mode) can be false. To obtain the
+ * correct directory type bits use mode|S_IFDIR
+ * */
func (wfs *WFS) Mkdir(cancel <-chan struct{}, in *fuse.MkdirIn, name string, out *fuse.EntryOut) (code fuse.Status) {
if s := checkName(name); s != fuse.OK {
@@ -73,6 +79,7 @@ func (wfs *WFS) Mkdir(cancel <-chan struct{}, in *fuse.MkdirIn, name string, out
}
+/** Remove a directory */
func (wfs *WFS) Rmdir(cancel <-chan struct{}, header *fuse.InHeader, name string) (code fuse.Status) {
if name == "." {