Top "File" questions

A block of arbitrary information, or resource for storing information, accessible by the string-based name or path.

How to get file creation & modification date/times in Python?

I have a script that needs to do some stuff based on file creation & modification dates but has to …

python file
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
How can I get a file's size in C?

How can I find out the size of a file I opened with an application written in C ? I would …

c file size
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
JavaScript: Create and save file

I have data that I want to write to a file, and open a file dialog for the user to …

javascript file dialog save
How can I check file size in Python?

I am writing a Python script in Windows. I want to do something based on the file size. For example, …

python file
How do I remove/delete a folder that is not empty?

I am getting an 'access is denied' error when I attempt to delete a folder that is not empty. I …

python file
How do I get the file extension of a file in Java?

Just to be clear, I'm not looking for the MIME type. Let's say I have the following input: /path/to/…

java file io
Fastest way to check if a file exist using standard C++/C++11/C?

I would like to find the fastest way to check if a file exist in standard C++11, C++, or C. …

c++ c file stream
Undo working copy modifications of one file in Git?

After the last commit, I modified a bunch of files in my working copy, but I want to undo the …

git file version-control dvcs undo