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 to handle OSError: [Errno 36] File name too long

When handling the errors that occur when trying to create an existing file or trying to use a file that …

python python-3.x filenames long-filenames
best way to remove file extension

What is the shortest way to remove file extension? this is what I have tried: file = "/home/usr/my_file.…

ruby filenames file-extension
Extract filename with extension from filepath string

I am looking to get the filename from the end of a filepath string, say $text = "bob/hello/myfile.zip"; …

php substring filenames filepath text-extraction
Read files in directory on ruby on rails

I am new in ruby on rails and I want to read file names from a specified directory. Can anyone …

ruby-on-rails filenames
File extension for a Serialized object

What file extension would be most suitable when saving a Serializable object to disk? FileOutputStream fos = null; ObjectOutputStream out = null; …

java serialization filenames serializable
Flutter: Get the filename of a File

I thought this would be pretty straight-forward, but can't seem to get this. I have a File file and it …

filenames flutter
How do I determine the extension(s) associated with a MIME type in PHP?

Is there a quick and dirty mapping of MIME types to extensions in PHP that I can make use of?

php mime mime-types filenames file-type
How to handle filenames with spaces?

I use Perl on windows(Active Perl). I have a perl program to glob the files in current folder, and …

perl filenames pathname
How can I sanitize a string for use as a filename?

I've got a routine that converts a file into a different format and saves it. The original datafiles were numbered, …

delphi validation filenames sanitization
What characters are allowed in a iOS file name?

I'm looking for a way to make sure a string can be used as a file name under iOS. I'm …

ios file filenames character-encoding nsfilemanager