Przeglądaj źródła

Added wip gkibscan

Toby Chui 3 lat temu
rodzic
commit
4b7d96b51b

+ 13 - 0
mod/filesystem/abstractions/webdavfs/webdavfs.go

@@ -263,6 +263,10 @@ func (e WebDAVFileSystem) Walk(rootpath string, walkFn filepath.WalkFunc) error
 	return e.walk(rootpath, walkFn)
 }
 
+/*
+	Helper Functions
+*/
+
 func (e WebDAVFileSystem) walk(thisPath string, walkFun filepath.WalkFunc) error {
 	files, err := e.c.ReadDir(thisPath)
 	if err != nil {
@@ -290,6 +294,15 @@ func (e WebDAVFileSystem) walk(thisPath string, walkFun filepath.WalkFunc) error
 	return nil
 }
 
+/*
+func (e WebDAVFileSystem) globscan(currentPath string, wildcardChunks []string, layer int) ([]string, error) {
+	if layer >= len(wildcardChunks) {
+		return []string{}, nil
+	}
+
+}
+*/
+
 func filterFilepath(rawpath string) string {
 	rawpath = strings.TrimSpace(rawpath)
 	if strings.HasPrefix(rawpath, "./") {

+ 1 - 1
web/SystemAO/file_system/file_explorer.html

@@ -1117,7 +1117,7 @@
                 <i class="notice icon"></i> <span locale="contextmenu/properties">Properties</span>
             </div>
             <div class="item vrootonly" onclick="showSharesManager();">
-                <i class="share alternate icon"></i> <span locale="contextmenu/share">Open Shares Manager</span>
+                <i class="share alternate icon"></i> <span locale="contextmenu/sharemanager">Open Shares Manager</span>
             </div>
             <!-- This properties show the vroot properties -->
             <div class="item vrootonly" onclick="showVrootProperties();">

+ 3 - 0
web/SystemAO/locale/file_explorer.json

@@ -118,6 +118,7 @@
                 "contextmenu/backup": "備份及還原",
                 "contextmenu/refresh": "重新整理",
                 "contextmenu/download": "下載",
+                "contextmenu/sharemanager": "分享管理員",
                 "contextmenu/properties": "內容",
 
                 "upload/count/uploading": " 上載中",
@@ -323,6 +324,7 @@
                 "contextmenu/backup": "備份及還原",
                 "contextmenu/refresh": "重新整理",
                 "contextmenu/download": "下載",
+                "contextmenu/sharemanager": "分享管理員",
                 "contextmenu/properties": "內容",
 
                 "upload/count/uploading": " 上載中",
@@ -525,6 +527,7 @@
                 "contextmenu/backup": "备份及还原",
                 "contextmenu/refresh": "重新整理",
                 "contextmenu/download": "下载",
+                "contextmenu/sharemanager": "分享管理员",
                 "contextmenu/properties": "内容",
 
                 "upload/count/uploading": " 上传中",