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

Function getSelectedFileNames

public/js/fileDragDrop.js:85–91  ·  view source on GitHub ↗
(rootEl)

Source from the content-addressed store, hash-verified

83 return null;
84}
85function getSelectedFileNames(rootEl) {
86 const scope = rootEl?.closest?.('#fileList, #fileListSecondary') || document.getElementById('fileList') || document;
87 const boxes = Array.from(scope.querySelectorAll('.file-checkbox:checked'));
88 const names = boxes.map(cb => getNameFromAny(cb)).filter(Boolean);
89 // de-dup just in case
90 return Array.from(new Set(names));
91}
92function makeDragImage(labelText, iconName = 'insert_drive_file') {
93 const isDark = document.body.classList.contains('dark-mode');
94

Callers 1

fileDragStartHandlerFunction · 0.85

Calls 1

getNameFromAnyFunction · 0.85

Tested by

no test coverage detected