git://git.nikiroo.be
/
fanfix-jexer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
223aa0d
)
fix Cache
author
Niki Roo
<niki@nikiroo.be>
Sun, 14 Apr 2019 11:40:13 +0000
(13:40 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Sun, 14 Apr 2019 11:40:13 +0000
(13:40 +0200)
src/be/nikiroo/utils/Cache.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/utils/Cache.java
b/src/be/nikiroo/utils/Cache.java
index dbe2020188ec44ae2dfd673529f49a8e6abdf462..ce33592ed3a4419cee1a6553908cae8621bfefd8 100644
(file)
--- a/
src/be/nikiroo/utils/Cache.java
+++ b/
src/be/nikiroo/utils/Cache.java
@@
-319,8
+319,9
@@
public class Cache {
* in case of I/O error
*/
private void save(InputStream in, File cached) throws IOException {
- clean(true, dir, 10);
+ // We delete AFTER so not to remove the subdir we will use...
IOUtils.write(in, cached);
+ clean(true, dir, 10);
}
/**