Creates the given path as a file, also creating
        intermediate directories if required.

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