fix(xo-server/file restore): support trailing slashes

This commit is contained in:
Julien Fontanet
2018-09-03 16:40:35 +02:00
parent fe653dc7dd
commit aefb76a4f6

View File

@@ -185,7 +185,7 @@ export default class BackupNgFileRestore {
addDirectory(
zip,
resolveSubpath(partition.path, file),
normalize('./' + file)
normalize('./' + file).replace(/\/+$/, '')
)
)
)