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
76f7ab6c
Commit
76f7ab6c
authored
Dec 30, 2015
by
Hugo Beauzée-Luyssen
Browse files
Revert "FsDiscoverer: Don't crash when a root folder can't be found anymore"
This reverts commit
9976a6c1
.
parent
bac7dec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/discoverer/FsDiscoverer.cpp
View file @
76f7ab6c
...
...
@@ -88,21 +88,12 @@ void FsDiscoverer::reload()
auto
blist
=
blacklist
();
for
(
const
auto
&
f
:
rootFolders
)
{
try
{
auto
folder
=
m_fsFactory
->
createDirectory
(
f
->
path
()
);
if
(
folder
->
lastModificationDate
()
==
f
->
lastModificationDate
()
)
continue
;
checkSubfolders
(
folder
.
get
(),
f
,
blist
);
checkFiles
(
folder
.
get
(),
f
);
f
->
setLastModificationDate
(
folder
->
lastModificationDate
()
);
}
//FIXME: Have a proper filesystem exception to catch
catch
(...)
{
LOG_INFO
(
"Failed to open "
,
f
->
path
(),
". Considering it deleted."
);
m_ml
->
deleteFolder
(
f
);
}
auto
folder
=
m_fsFactory
->
createDirectory
(
f
->
path
()
);
if
(
folder
->
lastModificationDate
()
==
f
->
lastModificationDate
()
)
continue
;
checkSubfolders
(
folder
.
get
(),
f
,
blist
);
checkFiles
(
folder
.
get
(),
f
);
f
->
setLastModificationDate
(
folder
->
lastModificationDate
()
);
}
}
...
...
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