Finding a folder without specific file?
Moderators: white, Hacker, petermad, Stefan2
-
- Junior Member
- Posts: 92
- Joined: 2004-06-27, 15:24 UTC
Finding a folder without specific file?
is it possible to find a directory, which does not contain a specific file?
for example I want to search a couple of subdirectories in c:\mp3 to find which of them do not have cover.jp*g?
thank you!
for example I want to search a couple of subdirectories in c:\mp3 to find which of them do not have cover.jp*g?
thank you!
CU
VK
VK
Hello!
Maybe
works.
But I am not quite sure at the moment.
Stitscher
Maybe
Code: Select all
c:\mp3\*.*|cover.jpg |cover.jpeg
But I am not quite sure at the moment.
Stitscher
-
- Junior Member
- Posts: 92
- Joined: 2004-06-27, 15:24 UTC
-
- Junior Member
- Posts: 92
- Joined: 2004-06-27, 15:24 UTC
- ghisler(Author)
- Site Admin
- Posts: 48199
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
No, to my knowledge this isn't possible, except by writing a custom content plugin.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
-
- Junior Member
- Posts: 92
- Joined: 2004-06-27, 15:24 UTC
There is what I'm doing righ now.
1) Searching for all cover.jp*g files in c:\MP3\ and feeding results to listbox (where is my Virtual Panel, btw? )
2) Selecting all results and saving the selection to file
3) Manually editing the selection file (in GVIM) removing the 'cover.jp*g' part. So, the string 'C:\MP3\CRASH TEST DUMMIES\1993 - GOD SHUFFLED HIS FEET\cover.jpeg' becomes ''C:\MP3\CRASH TEST DUMMIES\1993 - GOD SHUFFLED HIS FEET\'
4) Searching for all folders in c:\MP3\ and feeding results to listbox
5) Loading the selection from a file and inverting the selection. Now I have all folders without 'cover.jp*g' selected.
If anybody knows an easier way of performing this task?
1) Searching for all cover.jp*g files in c:\MP3\ and feeding results to listbox (where is my Virtual Panel, btw? )
2) Selecting all results and saving the selection to file
3) Manually editing the selection file (in GVIM) removing the 'cover.jp*g' part. So, the string 'C:\MP3\CRASH TEST DUMMIES\1993 - GOD SHUFFLED HIS FEET\cover.jpeg' becomes ''C:\MP3\CRASH TEST DUMMIES\1993 - GOD SHUFFLED HIS FEET\'
4) Searching for all folders in c:\MP3\ and feeding results to listbox
5) Loading the selection from a file and inverting the selection. Now I have all folders without 'cover.jp*g' selected.
If anybody knows an easier way of performing this task?
CU
VK
VK
- StickyNomad
- Power Member
- Posts: 1933
- Joined: 2004-01-10, 00:15 UTC
- Location: Germany
You need a decent command shell like Bash
Bash is available on Windows too, just install Cygwin
Bash is available on Windows too, just install Cygwin
Code: Select all
find /cygdrive/c/MP3 -type d | while read DIR
do
if [ ! -r "$DIR/cover.jp*g" ]
then
echo "$DIR/cover.jp*g not found or not readable"
fi
done
Best regards
Freddy Vejen
Freddy Vejen
2Valery_Kondakoff
Some time ago I added a field named "Content" to my content plug-in "Directory". It's intended to display the files contained in a directory in a tooltip. This field cannot be used in the search in a meaningful way as its length is quite limited. I'm thinking adding another field with support for the search function. Are you interested?
Some time ago I added a field named "Content" to my content plug-in "Directory". It's intended to display the files contained in a directory in a tooltip. This field cannot be used in the search in a meaningful way as its length is quite limited. I'm thinking adding another field with support for the search function. Are you interested?
- fenix_productions
- Power Member
- Posts: 1979
- Joined: 2005-08-07, 13:23 UTC
- Location: Poland
- Contact: