|
|
@ -70,7 +70,7 @@ window.qBittorrent.Filesystem = (function() { |
|
|
|
const folderName = function(filepath) { |
|
|
|
const folderName = function(filepath) { |
|
|
|
const slashIndex = filepath.lastIndexOf(PathSeparator); |
|
|
|
const slashIndex = filepath.lastIndexOf(PathSeparator); |
|
|
|
if (slashIndex === -1) |
|
|
|
if (slashIndex === -1) |
|
|
|
return filepath; |
|
|
|
return ''; |
|
|
|
return filepath.substring(0, slashIndex); |
|
|
|
return filepath.substring(0, slashIndex); |
|
|
|
}; |
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|