Posts: 4,647
Threads: 1,494
Joined: Sep 2016
there are a number of different functions and methods in a variety of different modules to return a status of whether a named file is of a particular type or not. is there a function that just returns what type the file is?
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
i only need file system semantic types, e.g. regular file, directory, symbolic link, character device, block device, named socket, pipe. but this looks interesting. it can't understand that uncompressed it is a tar file? i wonder what other compression formats it understands.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Posts: 4,647
Threads: 1,494
Joined: Sep 2016
to what extent can shlex provide the
separate values for HTTP headers
Content-Type: and
Content-Encoding:? it would need to recognize the major compression formats and actually do enough decompression to recognize what's inside.
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.