diff options
Diffstat (limited to 'apps/files/src/utils/fileUtils.ts')
-rw-r--r-- | apps/files/src/utils/fileUtils.ts | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/apps/files/src/utils/fileUtils.ts b/apps/files/src/utils/fileUtils.ts index 126739242a0..1f7e3078da9 100644 --- a/apps/files/src/utils/fileUtils.ts +++ b/apps/files/src/utils/fileUtils.ts @@ -19,9 +19,9 @@ * along with this program. If not, see <http://www.gnu.org/licenses/>. * */ +import { basename, extname } from 'path' import { FileType, type Node } from '@nextcloud/files' import { translate as t, translatePlural as n } from '@nextcloud/l10n' -import { basename, extname } from 'path' // TODO: move to @nextcloud/files /** @@ -41,17 +41,6 @@ export const getUniqueName = (name: string, otherNames: string[], suffix = (n: n return newName } -export const encodeFilePath = function(path) { - const pathSections = (path.startsWith('/') ? path : `/${path}`).split('/') - let relativePath = '' - pathSections.forEach((section) => { - if (section !== '') { - relativePath += '/' + encodeURIComponent(section) - } - }) - return relativePath -} - /** * Extract dir and name from file path * |