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 do I find all files containing specific text on Linux?

I'm trying to find a way to scan my entire Linux system for all files containing a specific string of …

linux text grep directory find
How do I list all files of a directory?

How can I list all files of a directory in Python and add them to a list?

python directory
How to change permissions for a folder and its subfolders/files in one step?

I would like to change permissions of a folder and all its sub folders and files in one step (command) …

linux permissions directory chmod
Find current directory and file's directory

In Python, what commands can I use to find: the current directory (where I was in the terminal when I …

python directory
How can I safely create a nested directory?

What is the most elegant way to check if the directory a file is going to be written to exists, …

python exception path directory operating-system
How to get the source directory of a Bash script from within the script itself?

How do I get the path of the directory in which a Bash script is located, inside that script? I …

bash directory
How do I get the full path of the current file's directory?

I want to get the current file's directory path. I tried: >>> os.path.abspath(__file__) 'C:\\python27\\…

python directory
How to read all files in a folder from Java?

How to read all the files in a folder through Java?

java file io directory
How to find if directory exists in Python

In the os module in Python, is there a way to find if a directory exists, something like: >>&…

python directory