dokan-dev / dokan-java

Dokan Java Wrapper
GNU Lesser General Public License v3.0
51 stars 28 forks source link

Make Shutdownhook optional #21

Closed infeo closed 5 years ago

infeo commented 5 years ago

Commit: 93cb766

Currently everytime the filesystem is mounted a shutdown hook for the JVM is installed as a last ditch attempt to unmount the filesystem if it was not properly unmounted with a regular unmount()-call.

https://github.com/dokan-dev/dokan-java/blob/93cb7664e260878ef2d56971d5f172cae7b8b8d5/src/main/java/dev/dokan/dokan_java/AbstractDokanyFileSystem.java#L248-L254

This may be unwanted and thus should be optional.

infeo commented 5 years ago

After some considerations i will close this issue. It is the responsibillity of this library to clean every mount it has made, thus the shutdown hook must be used whenever possible.