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

Function getRelativePathForItem

public/js/sharedDropView.js:285–290  ·  view source on GitHub ↗
(file)

Source from the content-addressed store, hash-verified

283 }
284
285 function getRelativePathForItem(file) {
286 const raw = preserveFolderStructure
287 ? (file.webkitRelativePath || file.relativePath || file.name)
288 : file.name;
289 return sanitizeRelativePath(raw, file.name);
290 }
291
292 function appendCommonFormData(formData) {
293 const tokenInput = form.querySelector('input[name="token"]');

Callers 2

uploadSingleFunction · 0.85
uploadChunkedFunction · 0.85

Calls 1

sanitizeRelativePathFunction · 0.85

Tested by

no test coverage detected