Skip to content

Commit 6e74729

Browse files
fix. stuck on loading screen
1 parent 3ffd4c4 commit 6e74729

File tree

1 file changed

+14
-22
lines changed

1 file changed

+14
-22
lines changed

src/fileSystem/internalFs.js

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff 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(

0 commit comments

Comments
 (0)