Welcome To Snipplr


Everyone's Recent Snippets Tagged directory



1 2 3 4 Next »
0 1110 posted 16 years ago by archlight
This simple code return the name of files
1 1140 posted 17 years ago by cobra90nj
1 1207 posted 17 years ago by stancell
Run from within SQL to get list of items in directory to a table.
1 1305 posted 17 years ago by DaveChild
0 1058 posted 17 years ago by screenager
Requires all Ruby source files in a given directory.
1 1380 posted 17 years ago by jccovey
Loads the contens of a dir an sorts them by the date of creation.
2 1898 posted 17 years ago by romanos
Function to retrieve all image files in a given directory
0 1226 posted 17 years ago by coggla
This is very useful if you need to populate a dropdown.
1 3148 posted 17 years ago by ecavazos
In response to a very simplistic solution suggestion using Shell, here is a basic version of what I use. The advantage of the solution below is that it is supposed to be much faster on directories with many files (I regularly use its full-blown versi...
0 1264 posted 17 years ago by amosshapira
Recursively creates a directory.
1 1295 posted 18 years ago by IanLewis
1 1462 posted 18 years ago by drwitt
This (almost) one-liner cascades into all subdirectories and deletes the files first, then the directories. Makes deleting a directory really easy. This was originally posted by John Wilson into the Groovy user list.
2 2392 posted 18 years ago by hansamann
0 1209 posted 19 years ago by priyanhere
2 1864 posted 19 years ago by whitetiger
0 1051 posted 19 years ago by whitetiger
This command will list every file under /my/directory larger than 250kB and sort it largest to smallest.
13 1697 posted 19 years ago by SunnyJim
This script reads a directory of files. After reading the directory specified it outputs the directory files. Upon output, supplied functions manipulate each filename and format it to make the output filename look better. e.g.: instead of output bei...
2 1865 posted 19 years ago by drewrockshard
1 2 3 4 Next »