How to have a space in a path for file-exists:

Discussion related to "Everything" 1.5 Alpha.
Post Reply
programmablesoda
Posts: 18
Joined: Wed Jan 22, 2020 7:37 am

How to have a space in a path for file-exists:

Post by programmablesoda »

I'm trying to use fileexists: to compare two drive/directories.

This search doesn't work (notice the directory "not found" with a space in it):
<J:\200009.Archives.SCSI.24gb | "J:\Backup\not found\200009.Archives.SCSI.24gb"> file: regex:J:\\200009.Archives.SCSI.24gb\\(.*) fileexists:J:\\Backup\\not found\\200009.Archives.SCSI.24gb\\\1
Once I renamed the directory "not found" to "not_found" the following worked:
<J:\200009.Archives.SCSI.24gb | "J:\Backup\not_found\200009.Archives.SCSI.24gb"> file: regex:J:\\200009.Archives.SCSI.24gb\\(.*) fileexists:J:\\Backup\\not_found\\200009.Archives.SCSI.24gb\\\1
I tried escaping the space with a \ and quotes in various ways, but nothing worked.
Is there a way to have a space in a fileexists: path?
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: How to have a space in a path for file-exists:

Post by void »

Use double quotes to escape spaces.

<J:\200009.Archives.SCSI.24gb | "J:\Backup\not found\200009.Archives.SCSI.24gb"> file: regex:"J:\\200009.Archives.SCSI.24gb\\(.*)" fileexists:"J:\\Backup\\not found\\200009.Archives.SCSI.24gb\\\1"
Post Reply