Short form of file names
Roman Suzi
rnd at onego.ru
Fri Jul 6 14:08:55 EDT 2001
On Sat, 7 Jul 2001, Mikhail Astafiev wrote:
>[Env: Win2k, Win98, Python 1.52]
>
>Hi!
>
>Is there some Python module for converting Windows long paths to short
>form, i.e. 8.3? os.path.normpath() does not do this..
Is there any standard for doing such conversion? AFAIK, there is no way to
convert individual files to 8.3, only whole directories of them, because
otherwise there will inevitable be name conflicts.
Programs such as mtools or cdrecord have some algorithms.
It's not too hard to rewrite them in Python
>Thanks in advance,
>Mikhail.
Sincerely yours, Roman Suzi
--
_/ Russia _/ Karelia _/ Petrozavodsk _/ rnd at onego.ru _/
_/ Friday, July 06, 2001 _/ Powered by Linux RedHat 6.2 _/
_/ ""Stupid" is a boundless concept." _/
More information about the Python-list
mailing list