Top "Directory" questions

A directory or folder is a virtual container within a digital file system, in which groups of computer files and other directories can be kept and organized.

How can I add an empty directory to a Git repository?

How can I add an empty directory (that contains no files) to a Git repository?

git directory git-add
How to delete files/subfolders in a specific directory at the command prompt in Windows

Say, there is a variable called %pathtofolder%, as it makes it clear it is a full path of a folder. …

windows batch-file file-io cmd directory
How can I get the list of files in a directory using C or C++?

How can I determine the list of files in a directory from inside my C or C++ code? I'm not …

c++ c file directory
Listing only directories using ls in Bash?

This command lists directories in the current path: ls -d */ What exactly does the pattern */ do? And how can we …

bash directory ls
If a folder does not exist, create it

I use a FileUploader control in my application. I want to save a file in a specified folder. Now I …

c# asp.net directory
Getting the filenames of all files in a folder

I need to create a list with all names of the files in a folder. For example, if I have: 000.…

java file directory filenames
Getting a list of all subdirectories in the current directory

Is there a way to return a list of all the subdirectories in the current directory in Python? I know …

python directory subdirectory
Download a single folder or directory from a GitHub repo

How can I download only a specific folder or directory from a remote Git repo hosted on GitHub? Say the …

git file github directory repository
Importing modules from parent folder

I am running Python 2.5. This is my folder tree: ptdraft/ nib.py simulations/ life/ life.py (I also have __init__.…

python module path directory python-import
How can I iterate over files in a given directory?

I need to iterate through all .asm files inside a given directory and do some actions on them. How can …

python iterator directory