Home
last modified time | relevance | path

Searched refs:dir_name (Results 1 – 25 of 52) sorted by relevance

123

/external/tensorflow/tensorflow/tools/gcs_test/python/
Dgcs_smoke.py59 dir_name = "%s/tf_gcs_test_%s" % (FLAGS.gcs_bucket_url, starttime_ms)
60 print("Creating dir %s" % dir_name)
61 file_io.create_dir(dir_name)
66 dir_exists = file_io.is_directory(dir_name)
68 print("%s directory exists: %s" % (dir_name, dir_exists))
72 recursive_dir_name = "%s/%s/%s" % (dir_name,
89 file_name = "%s/%s" % (dir_name, file_num)
93 print("Listing directory %s." % dir_name)
95 directory_contents = file_io.list_directory(dir_name)
98 print("Listed directory %s in %s milliseconds" % (dir_name, elapsed_ms))
[all …]
/external/ltp/testcases/kernel/syscalls/rmdir/
Drmdir05.c63 static char dir_name[256]; variable
178 if (mkdir(dir_name, 0777) != 0) { in main()
181 dir_name, errno, strerror(errno)); in main()
184 TEST(rmdir(dir_name)); in main()
189 dir_name, TEST_ERRNO, strerror(TEST_ERRNO)); in main()
192 if (stat(dir_name, &stat_buf) != 0) { in main()
195 dir_name); in main()
199 dir_name); in main()
221 sprintf(dir_name, "./dir_%d", getpid()); in setup()
/external/e2fsprogs/lib/e2p/
Diod.c27 int iterate_on_dir (const char * dir_name, in iterate_on_dir() argument
36 max_len = pathconf(dir_name, _PC_NAME_MAX); in iterate_on_dir()
56 dir = opendir (dir_name); in iterate_on_dir()
70 if ((*func)(dir_name, de, private)) in iterate_on_dir()
/external/autotest/server/cros/chaos_lib/
Dchaos_analyzer.py22 def __init__(self, dir_name, file_names, failures_only): argument
42 self._traces.append(os.path.join(dir_name, file_name))
44 for root, dir_name, file_names in os.walk(dir_name):
52 for root, dir_name, file_names in os.walk(root):
57 for root, dir_name, file_names in os.walk(root):
206 def _get_all_test_infos(self, dir_name, failures_only, packet_capture_only): argument
208 for root, dir, files in os.walk(dir_name):
Dchaos_parser.py295 for root, dir_name, file_name in os.walk(path):
355 if not arguments.dir_name:
358 if not os.path.exists(arguments.dir_name):
360 parser = ChaosParser(arguments.dir_name, arguments.create_file,
/external/e2fsprogs/misc/
Dlsattr.c139 static int lsattr_dir_proc (const char * dir_name, struct dirent * de, in lsattr_dir_proc() argument
144 int dir_len = strlen(dir_name); in lsattr_dir_proc()
148 if (dir_len && dir_name[dir_len-1] == '/') in lsattr_dir_proc()
149 sprintf (path, "%s%s", dir_name, de->d_name); in lsattr_dir_proc()
151 sprintf (path, "%s/%s", dir_name, de->d_name); in lsattr_dir_proc()
De4defrag.c1677 char dir_name[PATH_MAX + 1]; in main() local
1719 memset(dir_name, 0, PATH_MAX + 1); in main()
1752 if (get_mount_point(argv[i], dir_name, PATH_MAX) < 0) in main()
1754 if (lstat64(dir_name, &buf) < 0) { in main()
1770 strncpy(dir_name, argv[i], strnlen(argv[i], PATH_MAX)); in main()
1790 if (realpath(argv[i], dir_name) == NULL) { in main()
1830 if (dir_name[mount_dir_len] != '\0') { in main()
1835 if (strncmp(lost_found_dir, dir_name, in main()
1838 (dir_name[strnlen(lost_found_dir, in main()
1840 dir_name[strnlen(lost_found_dir, in main()
[all …]
Dchattr.c286 static int chattr_dir_proc (const char * dir_name, struct dirent * de, in chattr_dir_proc() argument
294 path = malloc(strlen (dir_name) + 1 + strlen (de->d_name) + 1); in chattr_dir_proc()
301 sprintf(path, "%s/%s", dir_name, de->d_name); in chattr_dir_proc()
/external/google-breakpad/src/common/
Ddwarf_line_to_module.cc81 string dir_name; in DefineFile() local
85 dir_name = compilation_dir_; in DefineFile()
89 dir_name = directory_it->second; in DefineFile()
99 string full_name = ExpandPath(name, dir_name); in DefineFile()
/external/e2fsprogs/ext2ed/
Ddir_com.c220 char *ptr,full_dir_name [500],dir_name [500],temp [500],temp2 [500]; in type_dir___cd() local
226 ptr=parse_word (command_line,dir_name); in type_dir___cd()
242 strcpy (dir_name,full_dir_name); in type_dir___cd()
247 strncpy (dir_name,full_dir_name,ptr-full_dir_name); in type_dir___cd()
248 dir_name [ptr-full_dir_name]=0; in type_dir___cd()
254 strcpy (name_search,dir_name); /* name_search is used to hold the required entry name */ in type_dir___cd()
256 if (dir_entry_ptr->name_len != strlen (dir_name) || in type_dir___cd()
257 strncmp (dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len)!=0) in type_dir___cd()
309 …wprintw (command_win,"Error - Directory entry %s not found.\n",dir_name); /* Hmm, an invalid path … in type_dir___cd()
/external/trappy/trappy/plotter/
DIPythonConf.py203 dir_name = os.path.join(get_ipython_dir(profile), PLOTTER_SCRIPTS)
204 if not os.path.isdir(dir_name):
205 os.makedirs(dir_name)
206 return dir_name
/external/e2fsprogs/debugfs/
Dfilefrag.c44 const char *dir_name; member
195 cp = malloc(strlen(fs->dir_name) + strlen(name) + 2); in filefrag_dir_proc()
198 fs->dir_name, name); in filefrag_dir_proc()
202 sprintf(cp, "%s/%s", fs->dir_name, name); in filefrag_dir_proc()
241 fs->dir_name = fs->name; in dir_iterate()
259 fs->dir_name = p->name; in dir_iterate()
/external/toolchain-utils/
Dtc_enter_chroot.py33 def CreateAndOwnDir(self, dir_name): argument
35 if not os.path.exists(dir_name):
36 command = 'mkdir -p ' + dir_name
37 command += ' || sudo mkdir -p ' + dir_name
42 if os.stat(dir_name).st_uid != pw.pw_uid:
43 command = 'sudo chown -f ' + self.owner + ' ' + dir_name
/external/python/cpython2/Lib/test/
Dtest_import.py401 dir_name = os.path.abspath(TESTFN)
402 os.mkdir(dir_name)
404 pkg_dir = os.path.join(dir_name, 'sa')
412 sys.path.insert(0, dir_name)
416 rmtree(dir_name)
442 dir_name = os.path.abspath(TESTFN) variable in PycRewritingTests
443 file_name = os.path.join(dir_name, module_name) + os.extsep + "py"
449 os.mkdir(self.dir_name)
452 sys.path.insert(0, self.dir_name)
462 rmtree(self.dir_name)
/external/autotest/server/hosts/
Dgce_host.py137 dir_name = self.run_output("mktemp -d %s" % template)
138 self.tmp_dirs.append(dir_name)
139 return dir_name
Dremote.py248 dir_name = self.run("mktemp -d %s" % template).stdout.rstrip()
249 self.tmp_dirs.append(dir_name)
250 return dir_name
/external/python/cpython3/Tools/msi/
Dcsv_to_wxs.py70 for dir_name in sorted(directories[dir_parent]):
71 …d(' <Directory Id="{}_{}" Name="{}" />'.format(dir_parent, make_id(dir_name), dir_name))
/external/libmicrohttpd/src/examples/
Ddemo.c312 char dir_name[128]; in update_directory() local
339 snprintf (dir_name, sizeof (dir_name), in update_directory()
343 if (0 != stat (dir_name, &sbuf)) in update_directory()
353 if (MHD_NO == list_directory (&rdc, dir_name)) in update_directory()
Ddemo_https.c313 char dir_name[128]; in update_directory() local
340 snprintf (dir_name, sizeof (dir_name), in update_directory()
344 if (0 != stat (dir_name, &sbuf)) in update_directory()
354 if (MHD_NO == list_directory (&rdc, dir_name)) in update_directory()
/external/tensorflow/tensorflow/examples/image_retraining/
Dretrain.py168 dir_name = os.path.basename(sub_dir)
169 if dir_name == image_dir:
171 tf.logging.info("Looking for images in '" + dir_name + "'")
173 file_glob = os.path.join(image_dir, dir_name, '*.' + extension)
184 'never be selected.'.format(dir_name, MAX_NUM_IMAGES_PER_CLASS))
185 label_name = re.sub(r'[^a-z0-9]+', ' ', dir_name.lower())
215 'dir': dir_name,
362 def ensure_dir_exists(dir_name): argument
368 if not os.path.exists(dir_name):
369 os.makedirs(dir_name)
/external/autotest/server/
Dbase_utils.py112 dir_name = tempfile.mkdtemp(prefix="autoserv-")
116 __tmp_dirs[pid].append(dir_name)
117 return dir_name
/external/autotest/client/cros/cellular/wardmodem/
Dmodem_configuration.py174 dir_name = os.path.dirname(current_module.__file__)
175 full_path = os.path.join(dir_name, CONF_DIR_NAME, conf_file)
/external/webrtc/webrtc/base/
Dfilerotatingstream_unittest.cc25 void Init(const std::string& dir_name, in Init() argument
32 test_path.AppendFolder(dir_name); in Init()
187 void Init(const std::string& dir_name, size_t max_total_log_size) { in Init() argument
191 test_path.AppendFolder(dir_name); in Init()
/external/tensorflow/tensorflow/examples/speech_commands/
Dinput_data_test.py47 dir_name = os.path.join(root_dir, label)
48 os.mkdir(dir_name)
50 file_path = os.path.join(dir_name, "some_audio_%d.wav" % i)
/external/webrtc/webrtc/tools/converter/
Dconverter.cc155 std::string Converter::FindFullFileName(std::string dir_name, in FindFullFileName() argument
157 return dir_name + SEPARATOR + file_name; in FindFullFileName()

123