Browse Source

fix:""挂载点luat_fs_dexist返回异常

Dozingfiretruck 5 months ago
parent
commit
8c9c9c786c
1 changed files with 1 additions and 1 deletions
  1. 1 1
      luat/vfs/luat_vfs.c

+ 1 - 1
luat/vfs/luat_vfs.c

@@ -361,7 +361,7 @@ int luat_fs_dexist(const char *_DirName){
         LLOGD("no such mount");
         return 0;
     }
-    if (strlen(mount->prefix) == 0 || strlen(mount->prefix) == strlen(_DirName)){
+    if (strlen(mount->prefix) == strlen(_DirName)){
         return 1;
     }
     if (mount->fs->opts.opendir == NULL) {