Support for restricted folders

now every file control function checks that the path is not restricted
still need to update input for advanced
check for restricted save to file!!!