Use filesystem::remove instead of filesystem::remove_all.
authorCryptoManiac <balthazar.ad@gmail.com>
Fri, 8 Apr 2016 17:23:55 +0000 (20:23 +0300)
committerCryptoManiac <balthazar.ad@gmail.com>
Fri, 8 Apr 2016 17:23:55 +0000 (20:23 +0300)
src/init.cpp

index 90fcb99..50a79ac 100644 (file)
@@ -327,7 +327,7 @@ bool DropBlockIndex()
         filesystem::remove_all(directory); // remove directory
 #else
         filesystem::path indexFile = GetDataDir() / "blkindex.dat";
-        filesystem::remove_all(indexFile); // remove directory
+        filesystem::remove(indexFile); // remove index file
 #endif
 
         unsigned int nFile = 1;