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.

Extract filename and extension in Bash

I want to get the filename (without extension) and the extension separately. The best solution I found so far is: …

bash string filenames
Extracting extension from filename in Python

Is there a function to extract the extension from a filename?

python filenames file-extension
How to loop over files in directory and change path and add suffix to filename

I need to write a script that starts my program with different arguments, but I'm new to Bash. I start …

bash for-loop filenames glob
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
Extract file basename without path and extension in bash

Given file names like these: /the/path/foo.txt bar.txt I hope to get: foo bar Why this doesn't …

linux bash unix filenames
How do I get the file name from a String containing the Absolute file path?

String variable contains a file name, C:\Hello\AnotherFolder\The File Name.PDF. How do I only get the file …

java file filenames filepath
Maximum filename length in NTFS (Windows XP and Windows Vista)?

I'm designing a database table which will hold filenames of uploaded files. What is the maximum length of a filename …

windows-vista windows-xp ntfs filenames name-length
What characters are forbidden in Windows and Linux directory names?

I know that / is illegal in Linux, and the following are illegal in Windows (I think) * . " / \ [ ] : ; | , What else am I …

windows linux directory zip filenames
C++ code file extension? .cc vs .cpp

I have seen C++ code saved as both .cc and .cpp files. Is there a difference between the two? The …

c++ filenames
Given a filesystem path, is there a shorter way to extract the filename without its extension?

I program in WPF C#. I have e.g. the following path: C:\Program Files\hello.txt and I want …

c# path filenames file-extension path-manipulation