Page 1 of 1

How do find all files without a name?

Posted: Fri Jan 11, 2019 9:55 pm
by Debugger
How do find all files without a name? :D


Image

Re: How do find all files without a name?

Posted: Fri Jan 11, 2019 10:56 pm
by NotNull
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)

Re: How do find all files without a name?

Posted: Fri Jan 11, 2019 11:28 pm
by vanisk
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.

Re: How do find all files without a name?

Posted: Sat Jan 12, 2019 6:59 am
by Debugger
The last regular expression works correctly.

Re: How do find all files without a name?

Posted: Mon Jan 14, 2019 10:10 pm
by NotNull
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 ..

Re: How do find all files without a name?

Posted: Mon Jan 14, 2019 11:18 pm
by vanisk
I meant filename.extension without "filename" AND without ".extension". Just a hypothetical situation ..
Oops. Sorry about that. I misunderstood.