Fixing folder permissions and adding ability to get accessible folders.