Directories is an alias for folders. Use this tag for questions about creating, managing, using, and deleting folders.
0
votes
0answers
28 views
Automatically redirect /index.php files to their URL directory with .htaccess
The requirements:
Work inside .htaccess (preferably via mod_rewrite)
Redirect requests from /any/directory/index.php to /any/directory/
Make sure that /index.php-with-stupid-stuff-here does not get ...
2
votes
0answers
56 views
PHP - faster/better implementation of is_dir function for FTP/FTPS connections?
I'm implementing an is_dir() function to determine if a given item is a directory or a file for FTP/FTPS connections. Currently, I have two methods: one using PHP's FTP wrapper for the is_dir() ...
0
votes
0answers
38 views
A Ruby file-find strategy with the Find library?
I recently wrote a bit of code to fix broken aliases. (A dropbox backup changed all their types to look like true files)
I iterate through all files in O(m•n) form. I recognize that there are ...
5
votes
1answer
111 views
Is there a better way to walk a directory tree?
I just started to learn Haskell, and i wrote a function that walks the directory tree recursively and pass the content of each directory to a callback function:
The content of the directory is a ...
2
votes
2answers
47 views
Better way to create directories using File
I have this code that generally creates directories within a directory.
File userFolder = new File(rootPath+"/media/"+userBean.getUsername());
File userPhotosDir = new ...