id summary reporter owner description type status milestone component version severity resolution keywords cc 7607 "path should not infer an invisible ""."" at the end of a path that ends with a slash" Craig Dickson Beman Dawes "Currently, a path that ends with a slash (or backslash on Windows) is treated as if it had an invisible ""."" at the end. For example, filename(""/usr/"") returns ""."", and iterating over path(""/usr/"") produces the elements ""/"", ""usr"", and ""."". I think this is a design error, because it leads to unexpected behaviors. For example, create_directories(""foo/"") fails even though the directory ""foo"" is successfully created, because the code tries to conclude by creating ""."", which makes no sense and obviously will fail. I think the effect of ending a path with a slash should simply be that the final element (preceding the slash) is considered a directory name, not a filename. Therefore filename(""foo/"") should return an empty string, and has_filename(""foo/"") should return false. Most other operations, however, should act as if the slash simply wasn't there. Iterating over path(""/usr/bin/""), for example, should return the elements ""/"", ""usr"", and ""bin"", and create_directories(""foo/"") should behave exactly the same as create_directories(""foo""). " Bugs closed To Be Determined filesystem Boost 1.50.0 Problem wontfix