Top "Filenames" questions

Filenames are metadata about a file; a string used to uniquely identify a file stored on the file system of a computer.

How do I get a file name from a full path with PHP?

For example, how do I get Output.map from F:\Program Files\SSH Communications Security\SSH Secure Shell\Output.map …

php filenames
How do I remove the file suffix and path portion from a path string in Bash?

Given a string file path such as /foo/fizzbuzz.bar, how would I use bash to extract just the fizzbuzz …

string bash filenames
Use jQuery to get the file input's selected filename without the path

I used this: $('input[type=file]').val() to get the file name selected, but it returned the full path, …

javascript jquery get filenames
How to replace spaces in file names using a bash script

Can anyone recommend a safe solution to recursively replace spaces with underscores in file and directory names starting from a …

linux bash whitespace filenames
Get names of all files from a folder with Ruby

I want to get all file names from a folder using Ruby.

ruby file directory filenames
Build the full path filename in Python

I need to pass a file path name to a module. How do I build the file path from a …

python join filenames
Rename multiple files in a folder, add a prefix (Windows)

I'd like to batch rename files in a folder, prefixing the folder's name into the new names. i.e. files …

windows powershell filenames prefix batch-rename
Why do I get a SyntaxError for a Unicode escape in my file path?

The folder I want to get to is called python and is on my desktop. I get the following error …

python windows filenames
cmd line rename file with date and time

Project moving forwards, I can see why creating .bat files to do things can become addictive! I can now save …

date time cmd filenames add
Get file name from URL

In Java, given a java.net.URL or a String in the form of http://www.example.com/some/path/…

java file parsing url filenames