mirror of
https://github.com/zoriya/flood.git
synced 2026-05-29 18:04:10 +00:00
Remove logic to remove filenames from directory
This commit is contained in:
@@ -53,18 +53,6 @@ class TorrentDetails extends React.Component {
|
||||
let parentDirectory = torrent.directory;
|
||||
let filename = torrent.filename;
|
||||
|
||||
if (parentDirectory.endsWith(torrent.filename)) {
|
||||
parentDirectory = parentDirectory.substring(
|
||||
0, parentDirectory.length - torrent.filename.length
|
||||
);
|
||||
}
|
||||
|
||||
if (parentDirectory.endsWith('/') || parentDirectory.endsWith('\\')) {
|
||||
parentDirectory = parentDirectory.substr(
|
||||
0, parentDirectory.length - 1
|
||||
);
|
||||
}
|
||||
|
||||
if (files) {
|
||||
let fileList = files.map(pathItem => {
|
||||
let classes = classNames({
|
||||
|
||||
Reference in New Issue
Block a user