MCPcopy Create free account
hub / github.com/error311/FileRise / hasFolderPaths

Function hasFolderPaths

public/js/upload.js:257–265  ·  view source on GitHub ↗
(files)

Source from the content-addressed store, hash-verified

255}
256
257function hasFolderPaths(files) {
258 if (!Array.isArray(files)) return false;
259 return files.some((file) => {
260 const relRaw = getRelativePathForFile(file);
261 if (!relRaw) return false;
262 const rel = String(relRaw).replace(/\\/g, '/').replace(/^\/+/, '');
263 return rel.includes('/');
264 });
265}
266
267function scheduleFolderTreeRefresh(folder, immediate = false) {
268 const target = folder || window.currentFolder || 'root';

Callers 3

filterExistingUploadsFunction · 0.85
initResumableUploadFunction · 0.85
refreshFileListFunction · 0.85

Calls 1

getRelativePathForFileFunction · 0.85

Tested by

no test coverage detected