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

learn more… | top users | synonyms

5
votes
2answers
188 views

Random song playing app improvements

I have a substantial music collection, which will not load entirely in any music program. So I wrote this quick program, to play a random song in a subfolder of my music directory. I'm just ...
4
votes
1answer
81 views

Cart mover- OOP usage and learning design patterns

Firstly, I would like to say that this site looks fantastic... I haven't tried it out yet, but I'm coming from SO, so I think it will be great. My code is for a simple "cart-creation" class and ...
7
votes
4answers
356 views

File text searcher

I have a working version of a logfile searcher that targets a specific directory by extension type, and searches the files for certain words. I'm wondering if my method is the most efficient ...
3
votes
1answer
46 views

Perl file sorting script

This is my first ever real 100% self made perl script, I'd like to know how I can improve it. ...
2
votes
2answers
127 views

Recursive function for listing directories [closed]

The below code is recursive function that list directories in 2 levels: ...
4
votes
0answers
60 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
158 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
2answers
154 views

Script for creating a hierarchy of directories

This script creates a hierarchy of directories. Is this a good approach or can it be made better? I am mainly concerned with maintainability here, not efficiency. Suppose I wanted to add more ...
4
votes
0answers
553 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
1k 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
99 views

Better way to create directories using File

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