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
42b0194d
Commit
42b0194d
authored
Oct 06, 2015
by
Hugo Beauzée-Luyssen
Browse files
FsDiscoverer: Fix invalid last modification date
parent
7d62c062
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/discoverer/FsDiscoverer.cpp
View file @
42b0194d
...
...
@@ -48,6 +48,7 @@ bool FsDiscoverer::discover( const std::string &entryPoint )
return
false
;
checkFiles
(
fsDir
.
get
(),
f
);
checkSubfolders
(
fsDir
.
get
(),
f
);
f
->
setLastModificationDate
(
fsDir
->
lastModificationDate
()
);
return
true
;
}
...
...
@@ -98,6 +99,7 @@ bool FsDiscoverer::checkSubfolders( fs::IDirectory* folder, FolderPtr parentFold
auto
f
=
Folder
::
create
(
m_dbConn
,
subFolder
->
path
(),
0
,
subFolder
->
isRemovable
(),
parentFolder
->
id
()
);
checkFiles
(
subFolder
.
get
(),
f
);
checkSubfolders
(
subFolder
.
get
(),
f
);
f
->
setLastModificationDate
(
subFolder
->
lastModificationDate
()
);
continue
;
}
if
(
subFolder
->
lastModificationDate
()
==
(
*
it
)
->
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