Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mpd
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Иван Мажукин
mpd
Commits
d818b618
Commit
d818b618
authored
Feb 02, 2013
by
Denis Krjuchkov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
UpdateWalk.cxx: use FileExists
parent
c64700e7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
3 deletions
+2
-3
UpdateWalk.cxx
src/UpdateWalk.cxx
+2
-3
No files found.
src/UpdateWalk.cxx
View file @
d818b618
...
...
@@ -33,6 +33,7 @@
#include "ExcludeList.hxx"
#include "conf.h"
#include "fs/Path.hxx"
#include "fs/FileSystem.hxx"
extern
"C"
{
#include "uri.h"
...
...
@@ -141,10 +142,8 @@ purge_deleted_from_directory(Directory *directory)
struct
song
*
song
,
*
ns
;
directory_for_each_song_safe
(
song
,
ns
,
directory
)
{
struct
stat
st
;
const
Path
path
=
map_song_fs
(
song
);
if
(
path
.
IsNull
()
||
stat
(
path
.
c_str
(),
&
st
)
<
0
||
!
S_ISREG
(
st
.
st_mode
))
{
if
(
path
.
IsNull
()
||
!
FileExists
(
path
))
{
db_lock
();
delete_song
(
directory
,
song
);
db_unlock
();
...
...
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