Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
medialibrary
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
57
Issues
57
List
Boards
Labels
Service Desk
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
VideoLAN
medialibrary
Commits
42b0194d
Commit
42b0194d
authored
Oct 06, 2015
by
Hugo Beauzée-Luyssen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
FsDiscoverer: Fix invalid last modification date
parent
7d62c062
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/discoverer/FsDiscoverer.cpp
src/discoverer/FsDiscoverer.cpp
+2
-0
No files found.
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
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