How do find all files without a name?

General discussion related to "Everything".
Post Reply
Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

How do find all files without a name?

Post by Debugger » Fri Jan 11, 2019 9:55 pm

How do find all files without a name? :D


Image

NotNull
Posts: 1465
Joined: Wed May 24, 2017 9:22 pm

Re: How do find all files without a name?

Post by NotNull » Fri Jan 11, 2019 10:56 pm

But *with* a file extension (like .gif)?
(is it even possible to have a completely 'empty' file name?)

For a rough indication use:
file: wfn:.*

For an accurate result, use:
file: regex:^\.[^\.\s]*$


(not tested, though)

vanisk
Posts: 150
Joined: Sat Oct 27, 2018 11:33 am

Re: How do find all files without a name?

Post by vanisk » Fri Jan 11, 2019 11:28 pm

NotNull wrote:
Fri Jan 11, 2019 10:56 pm
But *with* a file extension (like .gif)?
(is it even possible to have a completely 'empty' file name?)
Idk, but there are quite a lot of files only with extension in my machine too. Mostly in Eclipse's Profile & metadata folders.
file: wfn:.*
Worked, Produced 2062 results (which includes some files like ".travis.yml")
file: regex:^\.[^\.\s]*$
Produced 793 results. Worked like a charm.

Debugger
Posts: 530
Joined: Thu Jan 26, 2017 11:56 am

Re: How do find all files without a name?

Post by Debugger » Sat Jan 12, 2019 6:59 am

The last regular expression works correctly.

NotNull
Posts: 1465
Joined: Wed May 24, 2017 9:22 pm

Re: How do find all files without a name?

Post by NotNull » Mon Jan 14, 2019 10:10 pm

vanisk wrote:
Fri Jan 11, 2019 11:28 pm
NotNull wrote:
Fri Jan 11, 2019 10:56 pm
(is it even possible to have a completely 'empty' file name?)
Idk, but there are quite a lot of files only with extension in my machine too. Mostly in Eclipse's Profile & metadata folders.
I meant filename.extension without "filename" AND without ".extension". Just a hypothetical situation ..

vanisk
Posts: 150
Joined: Sat Oct 27, 2018 11:33 am

Re: How do find all files without a name?

Post by vanisk » Mon Jan 14, 2019 11:18 pm

I meant filename.extension without "filename" AND without ".extension". Just a hypothetical situation ..
Oops. Sorry about that. I misunderstood.

Post Reply