Adding PC Filename Extensions to Macintosh Filenames
Roman Suzi
rnd at onego.ru
Thu Aug 7 00:10:12 EDT 2003
On Wed, 6 Aug 2003, hokiegal99 wrote:
>Roman Suzi wrote:
>> Second, Linux has 'file' command which tells you file type based on
>> content and knows tonns of formats.
>
>How would I use this from within Python to more accurately identify a file?
Run "file" from Python with os.popen for example and analize results.
At first try to
file *
from a command line to see what it tells about files.
Sincerely yours, Roman Suzi
--
rnd at onego.ru =\= My AI powered by GNU/Linux RedHat 7.3
More information about the Python-list
mailing list