This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author norbidur
Recipients
Date 2007-08-18.00:14:50
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
On windows, glob.glob gives different results if you use a wildcard or not and if you use unix-style paths.

exemple : 
import glob
print glob.glob("c:/tmp/3691674.jpg")
print glob.glob("c:/tmp/3691674.jpg*")
print glob.glob("c:/res.txt")
print glob.glob("c:/res.txt*")

gives :
['c:/tmp/3691674.jpg']
['c:/tmp\\3691674.jpg']
['c:/res.txt']
['c:/res.txt']


the two first calls give the same result but one with a platform specific separator, and not the other.
One can think that if there is no wildcard, this is normal behavior to return the path given to glob.glob but then I have the second inconsitency : in that case the last result should be c:\\res.txt.
History
Date User Action Args
2007-08-23 14:59:14adminlinkissue1776674 messages
2007-08-23 14:59:14admincreate