{!cutFiles ? (
) : (
)
}
{cutFiles && (
)}
{copyFiles && (
)}
{/* here make it if its only one file selected and it ends in .zip*/}
{goBack && goBack != "" && (
Path: {path}
)}
{files.sort((a, b) => {
if (a.type === 'dir' && b.type !== 'dir') return -1;
if (a.type !== 'dir' && b.type === 'dir') return 1;
return 0;
}).map((file, index) => (
handleDoubleClick(file)}
>
handleFileClick(file)} className="-mt-1 mr-1" />
{file.type === "dir" ? (
) : (
)}
{file.path.split('/').pop()}
{selectedPaths.includes(file.path) && cutFiles && }
{typeof file.file_size == "undefined" ? "--" : formatBytes(file.file_size)}
))}