cryptomator / cryptofs

Java Filesystem Provider with integrated encryption
GNU Affero General Public License v3.0
93 stars 35 forks source link

Feature: Remove deleted file from openFiles map and set file path to null #172

Closed infeo closed 1 year ago

infeo commented 1 year ago

Fixes #170.

Before actually deleting files on the underlying file system, the openCryptoFile is removed from the (path, file)-mapping. Additionally, the currentFilePath object is null'ed, to indicate the openCryptoFile should not be used anymore. The usages of currentFilePath are updated to be null safe.

Note, that this only fixes a "symptom", there is still surface for bad timing. The root cause is described in #171.