mirror of
https://github.com/usatiuk/dhfs.git
synced 2025-10-28 20:47:49 +01:00
rename overwrites filename
seems that libreoffice expects it to work
This commit is contained in:
@@ -168,8 +168,10 @@ public class DhfsFileServiceImpl implements DhfsFileService {
|
||||
|
||||
if (!(found.get() instanceof Directory dir)) return false;
|
||||
|
||||
if (!dir.putKid(Path.of(to).getFileName().toString(), dent.get().getUuid()))
|
||||
return false;
|
||||
dir.runWriteLocked((n, d) -> {
|
||||
d.getChildren().put(Path.of(to).getFileName().toString(), dent.get().getUuid());
|
||||
return null;
|
||||
});
|
||||
jObjectManager.put(dir);
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user