remove caching when getting listfiles share permissions
remove console/print statements used for debugging