[libbluray-devel] CacheDir: validate path only once when removing files from cache

hpi1 git at videolan.org
Tue Nov 4 13:30:23 CET 2014


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Tue Nov  4 14:08:25 2014 +0200| [cd590ab77de2c25f5a80072589ca9b9095e8b163] | committer: hpi1

CacheDir: validate path only once when removing files from cache

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=cd590ab77de2c25f5a80072589ca9b9095e8b163
---

 src/libbluray/bdj/java/org/videolan/CacheDir.java |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/libbluray/bdj/java/org/videolan/CacheDir.java b/src/libbluray/bdj/java/org/videolan/CacheDir.java
index 95e581a..8586bb0 100644
--- a/src/libbluray/bdj/java/org/videolan/CacheDir.java
+++ b/src/libbluray/bdj/java/org/videolan/CacheDir.java
@@ -69,10 +69,10 @@ class CacheDir {
         for (int i = 0; i < files.length; i++) {
             File file = files[i];
             if (file.isDirectory()) {
-                remove(file);
+                removeImpl(file);
             } else {
                 if (!file.delete()) {
-                    logger.error("Error removing " + file.getPath());
+                    logger.info("Error removing " + file.getPath());
                 }
             }
         }



More information about the libbluray-devel mailing list