file and dir methods with sudo