MCPcopy Create free account
hub / github.com/apache/singa / check_dir_exist

Function check_dir_exist

examples/cpp/cifar10/download_data.py:39–45  ·  view source on GitHub ↗
(dirpath)

Source from the content-addressed store, hash-verified

37
38
39def check_dir_exist(dirpath):
40 if os.path.exists(dirpath):
41 print('Directory %s does exist. To redownload the files, '\
42 'remove the existing directory and %s.tar.gz' % (dirpath, dirpath))
43 return True
44 else:
45 return False
46
47
48def do_download(dirpath, gzfile, url):

Callers 1

do_downloadFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected