Boost logo

Boost :

Subject: Re: [boost] [filesystem] Decomposition of filenames beginning withperiod?
From: Peter Dimov (pdimov_at_[hidden])
Date: 2011-04-07 13:22:46

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

Boost list run by bdawes at, gregod at, cpdaniel at, john at