Questions tagged [filenames]

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

The filename is metadata about a file; a special kind of string used to uniquely identify a file stored on the file system of a computer. Some operating systems also identify directories in the same way. Different operating systems impose different restrictions on length and allowed characters on filenames.

4148 questions
1
vote
4 answers

askopenfilename is not defined? - Making a browse button in tkinter

The purpose of my code is to create a GUI that has 4 buttons. 2 of them are to open a "browse" window, allowing the user to select a file from a directory. The third button is to allow the user to choose a directory for the final document to be…
A. Blackmagic
  • 233
  • 1
  • 3
  • 9
1
vote
1 answer

Linux library naming conventions: Capitalization?

When looking at the libraries in /usr/lib/, one noticed that almost all lib*.so files aren't capitalized even if the official library name is, e.g., BLAS: libblas.so, cURL: libcurl.so, BFD: libbfd.so. Is there a Linux or Unix convention that…
Nico Schlömer
  • 53,797
  • 27
  • 201
  • 249
1
vote
4 answers

How to achieve dynamic page file names in ASP.NET?

I would like my website to create search-engine-optimized links for dynamic content (instead of locating data via the querystring). So: mysite/SomeModifiableNname.aspx instead of mysite/DynamicContent.aspx?entryID=2345. Aside from a smart 404…
Colin
  • 33
  • 5
1
vote
0 answers

Android : 6 Getting file name using content resolver

DocumentFile.fromSingleUri() and getName() ,if i use this can i able to get the file name in andorid 6 , i am facing this issue in android 6,is there any solution to get file name of downloaded file using content resolver?
Praveen
  • 39
  • 8
1
vote
0 answers

Can the output file object be passed to an input function in SnakeMake?

A SnakeMake input function can receive a dictionary of wildcards extracted from the output filename: def inputFunc(wildcards): return "test.txt" rule A: output: "{FILE}.{EXT}" input: lambda wildcards: inputFunc(wildcards) My question…
tedtoal
  • 1,030
  • 1
  • 10
  • 22
1
vote
1 answer

opening a file with an accented character in its name, in Python 2 on Windows

In a directory in Windows I have 2 files, both of them with an accented character in its name: t1û.fn and t2ű.fn; The dir command in the Command Prompt shows both correctly: S:\p>dir t*.fn Volume in drive S is q Volume Serial Number is 05A0-8823 …
pts
  • 80,836
  • 20
  • 110
  • 183
1
vote
1 answer

GAMS: Filename cannot be used as valid UEL

I trying to merge a large data set in gams. The file should consist of multiple gdx files with several names. The programme merges the files as I would like them to however: it replaces the names of the file to be merged with File_1, File_2, File_3…
ima
  • 155
  • 12
1
vote
4 answers

This regex does not work in Chrome

Hi i just put up a validation function in jScript to validate filename in fileupload control[input type file]. The function seems to work fine in FF and sometimes in ie but never in Chrome. Basically the function tests if File name is atleast 1 char…
1
vote
4 answers

Listing files in date order with spaces in filenames

I am starting with a file containing a list of hundreds of files (full paths) in a random order. I would like to list the details of the ten latest files in that list. This is my naive attempt: $ ls -las -t `cat list-of-files.txt` | head -10 That…
Jason
  • 4,411
  • 7
  • 40
  • 53
1
vote
4 answers

sed / awk - remove space in file name

I'm trying to remove whitespace in file names and replace them. Input: echo "File Name1.xml File Name3 report.xml" | sed 's/[[:space:]]/__/g' However the output File__Name1.xml__File__Name3__report.xml Desired output File__Name1.xml…
Deano
  • 11,582
  • 18
  • 69
  • 119
1
vote
2 answers

Can I use MD5 or SHA1 hashes for filenames?

Let's consider a site where users can upload files. Can I use MD5 or SHA1 hashes of their contents as filenames? If not, what should I use? To avoid collisions.
x-yuri
  • 16,722
  • 15
  • 114
  • 161
1
vote
1 answer

Excel VBA- Runtime Error 1004 opening a workbook

Pretty new to vba, but I wrote a code that unmerges rows within a column, copies thus cells then pastes within a different macro workbook. The code ran well when I first ran it. However I attempted to use it today and I was shocked I had an error.…
Shelly Pig
  • 13
  • 1
  • 3
1
vote
0 answers

file() produces different output if file name contains unicode characters?

I'm trying to understand an inconsistency in the behaviour of R's file() function. Example: # openssl for producing hash values require(openssl) # sample data data(mtcars) saveRDS(mtcars, './mtcars.rds') saveRDS(mtcars, './mtcars测试.rds') # if…
Yifeng Mu
  • 206
  • 2
  • 6
1
vote
2 answers

Cant keep original FileName after Upload

I am currently using PHP to create a file upload system. I took help from internet and successfully made the project. But problem was that after upload the FileName would change to something complicated. Eg: 5987fff5b3dd83.21913884. Is there a way…
1
vote
2 answers

how can I delete file which has invalid file name?

There is 2 loader.bin. But one of them has carrage return at the end of the file name. Because of this, I can't delete the file, and directory containing the file. Even with command prompt, I can't delete it. I tried: del * del loader.* above says…
Taeyun
  • 211
  • 2
  • 16