def touch(path):
        """
        Creates the given path as a file, also creating
        intermediate directories if required.
        """
        parentDirPath = os.path.dirname(path)

        PathOperations.safeMakeDirs(parentDirPath)

        with open(path, "wb"):
            pass
def touch ( path ) : parentDirPath = os . path . dirname ( path ) PathOperations . safeMakeDirs ( parentDirPath ) with open ( path , "wb" ) : pass
Creates the given path as a file, also creating
        intermediate directories if required.