(self, path: PATH_TYPES)
return any([self.is_dir(path), self.is_file(path)])
Check whether the provided path exists
Check whether the provided path exists
Check whether the provided path exists
def exists(self, path: PATH_TYPES) -> bool:
        """Check whether the provided path exists"""
        if not isinstance(path, SwiftPath):
            path = SwiftPath(str(path))
        target_path = str(path)
        if target_path == ".":
            target_path = ""
        return any([self.is_dir(path), self.is_file(path)])
def exists ( self , path : PATH_TYPES ) -> bool : if not isinstance ( path , SwiftPath ) : path = SwiftPath ( str ( path ) ) target_path = str ( path ) if target_path == "." : target_path = "" return any ( [ self . is_dir ( path ) , self . is_file ( path ) ] )