Delete empty directories (UNIX)
find . -type d -empty | xargs rmdir -
11381 users tagging and storing useful source code snippets
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world
find . -type d -empty | xargs rmdir -
dirs: func [
{Returns a block of fully qualified subdirectories for the directory.}
spec [file!] "Starting directory"
block [block!] "Block to append to"
/deep "Recurse sub-directories."
/local f-spec
][
spec: dirize spec
foreach file read spec [
if dir? f-spec: join spec file [
append block f-spec
if deep [all-dirs/deep f-spec block]
]
]
block
]