Windows: replace unlink() with unicode-capable path_unlink()
This commit is contained in:
@@ -145,7 +145,7 @@ public:
|
||||
if (path_exists(m_stopfilename)) {
|
||||
LOGINF("recollindex: asking indexer to stop because " <<
|
||||
m_stopfilename << " exists\n");
|
||||
unlink(m_stopfilename.c_str());
|
||||
path_unlink(m_stopfilename);
|
||||
stopindexing = true;
|
||||
}
|
||||
if (stopindexing) {
|
||||
|
||||
@@ -472,10 +472,10 @@ WebQueueIndexer::processone(const string &path,
|
||||
dounlink = true;
|
||||
out:
|
||||
if (dounlink) {
|
||||
if (unlink(path.c_str())) {
|
||||
if (!path_unlink(path)) {
|
||||
LOGSYSERR("WebQueueIndexer::processone", "unlink", path);
|
||||
}
|
||||
if (unlink(dotpath.c_str())) {
|
||||
if (!path_unlink(dotpath)) {
|
||||
LOGSYSERR("WebQueueIndexer::processone", "unlink", dotpath);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user