query: If directory is empty do this, If directory is not empty do that
positive_passages.docid: 153835
positive_passages.text: Bash scripting: test for empty directory
negative_passages.docid: 64756
negative_passages.text: Finding empty directories recursively
negative_passages.docid: 123524
negative_passages.text: Removing a non empty directory programmatically in C or C++
negative_passages.docid: 107728
negative_passages.text: How do you enter a directory that's name is only a minus?
negative_passages.docid: 32318
negative_passages.text: What's the best way to count the number of files in a directory?
negative_passages.docid: 85877
negative_passages.text: How to determine what filesystem a directory exists on?
negative_passages.docid: 22156
negative_passages.text: How do I tell if a regular file does not exist in Bash?
negative_passages.docid: 84393
negative_passages.text: See if file path is inside a directory
negative_passages.docid: 53375
negative_passages.text: Trying to delete directory with "rm -rf", but get message that it's not empty
negative_passages.docid: 91058
negative_passages.text: bash iterate file list, except when empty
negative_passages.docid: 88276
negative_passages.text: Find directories that do not contain subdirectories
negative_passages.docid: 11108
negative_passages.text: How can Finder empty Trash more quickly than "rm -rf /Volumes/Foo/.Trashes/501/*"?
negative_passages.docid: 105862
negative_passages.text: How to check if shapefile is empty using ArcPy?
negative_passages.docid: 9434
negative_passages.text: How do I check if a list is empty?
negative_passages.docid: 93046
negative_passages.text: How to see if the directory exists?
negative_passages.docid: 118843
negative_passages.text: How to delete directories based on `find` output?
negative_passages.docid: 91340
negative_passages.text: Testing if a variable is empty in a shell script