MCPcopy Create free account
hub / github.com/google-research/language / make_empty_dir

Function make_empty_dir

language/common/utils/file_utils.py:26–30  ·  view source on GitHub ↗

Makes an empty directory at `path`, deleting `path` first if needed.

(path)

Source from the content-addressed store, hash-verified

24
25
26def make_empty_dir(path):
27 """Makes an empty directory at `path`, deleting `path` first if needed."""
28 if tf.gfile.Exists(path):
29 tf.gfile.DeleteRecursively(path)
30 tf.gfile.MakeDirs(path)
31
32
33def copy_files_to_dir(source_filepattern, dest_dir):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…