
7 Apr
2011
7 Apr
'11
5:22 p.m.
Beman Dawes wrote:
Boost.Filesystem class path views filenames as being made up of a stem and an extension.
My Windows Users directory includes files ".gitconfig" and ".netrc".
The current class path implementation views these as having extensions of ".gitconfig" and ".netrc", respectively, and empty stems.
Python's os.path.splitext disregards leading periods, so these would have stems of .gitconfig and .netrc and empty extensions. .gitconfig.txt would have an extension of .txt. Windows Explorer does it differently though. Olaf van der Spek wrote:
stem: filename extension: .with.many.of.periods
The typical answer here is stem: filename.with.many.of extension: .periods