Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
8bf16409
Commit
8bf16409
authored
Dec 05, 2013
by
Denis Krjuchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fs/Traits.cxx: don't return drive path without trailing separator
parent
da50c888
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
Traits.cxx
src/fs/Traits.cxx
+4
-0
No files found.
src/fs/Traits.cxx
View file @
8bf16409
...
...
@@ -71,6 +71,10 @@ GetParentPathImpl(typename Traits::const_pointer p)
return
typename
Traits
::
string
(
"."
);
if
(
sep
==
p
)
return
typename
Traits
::
string
(
p
,
p
+
1
);
#ifdef WIN32
if
(
Traits
::
IsDrive
(
p
)
&&
sep
==
p
+
2
)
return
typename
Traits
::
string
(
p
,
p
+
3
);
#endif
return
typename
Traits
::
string
(
p
,
sep
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment