Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
1bc69918
Commit
1bc69918
authored
Dec 31, 2015
by
Hugo Beauzée-Luyssen
Browse files
fs: unix: directory: Ensure listed directories path end with a '/'
parent
26ae94f6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/filesystem/unix/Directory.cpp
View file @
1bc69918
...
...
@@ -126,7 +126,10 @@ void Directory::read()
if
(
S_ISDIR
(
s
.
st_mode
)
)
{
#endif
m_dirs
.
emplace_back
(
toAbsolute
(
path
)
);
auto
dirPath
=
toAbsolute
(
path
);
if
(
*
dirPath
.
crbegin
()
!=
'/'
)
dirPath
+=
'/'
;
m_dirs
.
emplace_back
(
dirPath
);
}
else
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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