Fixed reuse of directory-IDs after moving encrypted directories but keeping references to the old locations.

This caused an illegal state where two different directories share the same directory id, making further file operations on these directories virtually impossible.
This commit is contained in:
Sebastian Stenzel
2016-02-15 23:31:09 +01:00
parent 03208ebc5e
commit a909095a1c
3 changed files with 17 additions and 11 deletions
@@ -69,6 +69,7 @@ class InMemoryFile extends InMemoryNode implements File {
throw new UncheckedIOException(new FileAlreadyExistsException(k));
} else {
if (v == null) {
assert!content.hasRemaining();
this.creationTime = Instant.now();
}
this.lastModified = Instant.now();