Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
ccea1324
Commit
ccea1324
authored
Aug 25, 2016
by
Hugo Beauzée-Luyssen
Browse files
fs: win32: Directory: Store absolute pathes
parent
e1c720b2
Changes
1
Show whitespace changes
Inline
Side-by-side
src/filesystem/win32/Directory.cpp
View file @
ccea1324
...
...
@@ -57,10 +57,11 @@ void Directory::read() const
auto
file
=
charset
::
FromWide
(
f
.
cFileName
);
if
(
file
[
0
]
==
'.'
)
continue
;
auto
path
=
m_path
+
file
.
get
();
if
(
(
f
.
dwFileAttributes
&
FILE_ATTRIBUTE_DIRECTORY
)
!=
0
)
m_dirs
.
emplace_back
(
m_fsFactory
.
createDirectory
(
file
.
get
()
)
);
m_dirs
.
emplace_back
(
m_fsFactory
.
createDirectory
(
path
)
);
else
m_files
.
emplace_back
(
std
::
make_shared
<
File
>
(
file
.
get
()
)
);
m_files
.
emplace_back
(
std
::
make_shared
<
File
>
(
path
)
);
}
while
(
FindNextFile
(
h
,
&
f
)
!=
0
);
FindClose
(
h
);
}
...
...
Write
Preview
Supports
Markdown
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