check for dir in deleteFileKey() and delShareKey(), to always handle all share keys and file keys on delete