27.02.2020
Posted by 

Ok I tried something different, placed a fresh empty map in de subdirectory and it worked. First I tried it with al list of directories, and I manually deleted the files from 1 of the folders. For me this is empty. Probably there are some hidden system files still hanging around in a folder this way? Like the.xxxxx files, with a dot in front of them.

Is there a way, that the script could ignore these? If there are still some hidden files in the folder, it should be considered empty. Hope I am clear, english is not my native language.

Thnx You should receive a medal for your work. Code:./find-empty.py /DesktopThis will write a report called 'Empty Folders Report.txt' to the root of the directory you are scanning (in this case it will show up on your Desktop), and set the finder label of any empty subfolders to orange. It will ignore any files whose names begin with a dot when deciding if a folder is empty. BUT there is probably a better way to run this script.

You said you have 10.5 and the developer tools installed. Open /Developer/Applications/Utilities/MacPython 2.5. Drag and drop this script onto 'Build Applet.app'. This will create 'find-empty.app' If you want to scan a folder or disk, just drag it's icon onto this new app file and it will create your report and label your folders as above without requiring you to use the terminal. There is no progress bar or anything, but you can see if it is having problems with 'Console.app'.

Hope this helps. Code: #!/usr/bin/python import sys import os import tempfile import subprocess import time ######################################## #### Subroutines ####################### ######################################## # callback for filter below def isNonTrivial(fileName): # If the fileName starts with a dot, it doesn't count if fileName0:1 '.' You are great!

It worked like a charm on 10.5. I did it with MacPython like you said. Now I can just drag the folder on it and there we have it! You like this kind of questions? If you do I have another challenge you could try out, something similar.

Search Results For:

The case: I have folders (on a server), which are the following structure. 0xxxxxxx/0xxxxxxx.jpg or 0xxxxxxx/0xxxxxxx.swf where the folder name is the same as the file in it with a zero in front of it. I have to get a log, and label it like the empty folders app (if you could do a drag on the app thing for this would be great), of the files that don't match the folder name. Example 0214578.jpg is a good one 0214578.swf is a good one 0214579.jpg is a bad one (this has to log and label) 021578.jpg is also a bad one (this has to log and label) 0214579.swf is also a bad one (this has to log and label) etc. Is this something simple to do? Like the python app you made for the empty folders problem?

Search Results For: 'empty 250 For Mac 2017

If I am bothering you with this, just say it, you helped me already a great deal. So this is something of a bonus.

So if you like to do it, be my guest otherwise thnx for the great empty folders app!!! I appriciate it!

Ok - new owner on the learning curve. Set up a DS213 last week and coming up to speed. I tried searching for files that I know are there using both File Station and from a Mac where the shared folder is mounted using finder and other utilities.

Search Results For: 'empty 250 For Mac Free

The search via File Station comes up with no results and the search from the mac finds some of the files but is reallllly slow regardless of what utility I use for the search. Indexing is turned on for the shared folders on the DS213 (has been since setup). Gigabit network getting 30-50MB/sec transfers with larger files so I know the network speed is good. What have I missed here?

Search Results For: 'empty 250 For Mac Pro

Any help appreciated.