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

Function getRelativePathForFile

public/js/upload.js:246–255  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

244let _treeRefreshFolder = '';
245
246function getRelativePathForFile(file) {
247 if (!file || typeof file !== 'object') return '';
248 return (
249 file.relativePath ||
250 file.webkitRelativePath ||
251 file.customRelativePath ||
252 (file.file && (file.file.webkitRelativePath || file.file.customRelativePath)) ||
253 ''
254 );
255}
256
257function hasFolderPaths(files) {
258 if (!Array.isArray(files)) return false;

Callers 1

hasFolderPathsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected