Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions src/pages/fileBrowser/fileBrowser.js
Original file line number Diff line number Diff line change
Expand Up @@ -1073,6 +1073,25 @@ function FileBrowserInclude(mode, info, doesOpenLast = true) {
console.error("Error checking Terminal installation:", error);
}

try {
const terminalPublicUrl = cordova.file.dataDirectory + "public";

// Check if this storage is not already in the list
const terminalPublicStorageExists = allStorages.find(
(storage) =>
storage.uuid === "terminal-public" ||
storage.url === terminalPublicUrl,
);

if (!terminalPublicStorageExists) {
util.pushFolder(allStorages, "Terminal Public", terminalPublicUrl, {
uuid: "terminal-public",
});
}
} catch (err) {
console.error("Error while adding public directory", err);
}
Comment thread
RohitKushvaha01 marked this conversation as resolved.
Comment thread
RohitKushvaha01 marked this conversation as resolved.

try {
const res = await externalFs.listStorages();
res.forEach((storage) => {
Expand Down