File tree Expand file tree Collapse file tree 1 file changed +14
-22
lines changed
Expand file tree Collapse file tree 1 file changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -20,28 +20,20 @@ const internalFs = {
2020 `Listed files/directories successfully for url: ${ url } , Result: ` ,
2121 result ,
2222 ) ;
23- Capacitor . Plugins . NativeLayer . isSymlink ( { uri : file . uri } )
24- . then ( ( isSymlink ) => {
25- resolve (
26- result . files . map ( ( file ) => ( {
27- name : file . name ,
28- url : file . uri ,
29- size : file . size ,
30- ctime : file . ctime ,
31- mtime : file . mtime ,
32- isFile : file . type === "file" ,
33- isDirectory : file . type === "directory" ,
34- // TODO: Link(symlink/hardlink) file detection if possible.
35- isLink : isSymlink ,
36- } ) ) ,
37- ) ;
38- } )
39- . catch ( ( error ) => {
40- console . log (
41- `Error while checking symlink status for file: ${ file . uri } , error:` ,
42- error ,
43- ) ;
44- } ) ;
23+ resolve (
24+ result . files . map ( ( file ) => ( {
25+ name : file . name ,
26+ url : file . uri ,
27+ size : file . size ,
28+ ctime : file . ctime ,
29+ mtime : file . mtime ,
30+ isFile : file . type === "file" ,
31+ isDirectory : file . type === "directory" ,
32+ // TODO: Link(symlink/hardlink) file detection if possible.
33+ //This function sometimes gets called even before the NativeLayer is registred so calling isSymlink is not possible
34+ isLink : false ,
35+ } ) ) ,
36+ ) ;
4537 } )
4638 . catch ( ( error ) => {
4739 console . log (
You can’t perform that action at this time.
0 commit comments