File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -324,15 +324,13 @@ export function getFilePathRelativeToProject(
324324 return absoluteFilePath . slice ( projectIndexInPath + sliceOffset ) ?? ''
325325}
326326
327- /** Gets our "archive" directory for deletion/restoration, within the electron userData path */
327+ /** */
328328async function getArchiveBasePath ( ) {
329- return `${ window . electron ? await window . electron . getPathUserData ( ) : '/' } '${ ARCHIVE_DIR } `
329+ return window . electron
330+ ? window . electron . join ( await window . electron . getPathUserData ( ) , ARCHIVE_DIR )
331+ : `/${ ARCHIVE_DIR } `
330332}
331333
332- /**
333- * Our archive simply mirrors the absolute location on disk for the item
334- * being archived, joining it with the archive base path.
335- */
336334export async function toArchivePath ( absolutePath : string ) {
337335 const basePath = await getArchiveBasePath ( )
338336 return window . electron
You can’t perform that action at this time.
0 commit comments