Directories is an alias for folders. Use this tag for questions about creating, managing, using, and deleting folders.

learn more… | top users | synonyms

2
votes
2answers
38 views

Recursive function for listing directories [on hold]

The below code is recursive function that list directories in 2 levels: ...
4
votes
0answers
54 views

Copying folder contents from several folders

I have a file directory which contains folders for every month, and within those folders are several text files. In this context I would like to copy all of the text files from my ...
1
vote
2answers
114 views

Directory listing using php

I have to deploy the following code, that will list all the directories,sub directories and files in it starting from the root. The code works but I am not sure about it, if this is the correct way to ...
1
vote
0answers
322 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 ...
2
votes
0answers
370 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 ...
7
votes
1answer
568 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
66 views

Better way to create directories using File

I have this code that generally creates directories within a directory. ...