empty file->corrupted, no property->exception, check validity of path for key, clear dir before writing