private function getPermission($folder) { return substr(sprintf('%o', fileperms(base_path($folder))), -3); }