Home
last modified time | relevance | path

Searched refs:dir_path (Results 1 – 25 of 147) sorted by relevance

123456

/external/tensorflow/tensorflow/python/lib/io/
Dfile_io_test.py185 dir_path = file_io.join(self._base_dir, "temp_dir")
186 file_io.create_dir(dir_path)
189 file_path = file_io.join(dir_path, name)
191 expected_match = [file_io.join(dir_path, name) for name in files]
193 file_io.get_matching_files(file_io.join(dir_path, "file*.txt")),
197 file_io.join(dir_path, files[0]),
198 file_io.join(dir_path, files[2])
202 file_io.delete_recursively(dir_path)
203 self.assertFalse(file_io.file_exists(file_io.join(dir_path, "file3.txt")))
206 dir_path = file_io.join(self._base_dir, "dir_(special)")
[all …]
/external/pytorch/test/distributed/nn/jit/
Dtest_instantiator.py49 dir_path = Path(instantiator.INSTANTIATED_TEMPLATE_DIR_PATH)
52 file_paths = dir_path.glob(f"{instantiator._FILE_PREFIX}*.py")
57 file_paths = dir_path.glob(f"{instantiator._FILE_PREFIX}*.py")
68 file_paths = dir_path.glob(f"{instantiator._FILE_PREFIX}*.py")
73 dir_path = Path(instantiator.INSTANTIATED_TEMPLATE_DIR_PATH)
76 file_paths = dir_path.glob(f"{instantiator._FILE_PREFIX}*.py")
81 file_paths = dir_path.glob(f"{instantiator._FILE_PREFIX}*.py")
92 file_paths = dir_path.glob(f"{instantiator._FILE_PREFIX}*.py")
/external/webrtc/sdk/android/src/jni/pc/
Dcall_session_file_rotating_log_sink.cc24 std::string dir_path = JavaToStdString(jni, j_dirPath); in JNI_CallSessionFileRotatingLogSink_AddSink() local
26 new rtc::CallSessionFileRotatingLogSink(dir_path, j_maxFileSize); in JNI_CallSessionFileRotatingLogSink_AddSink()
30 << dir_path; in JNI_CallSessionFileRotatingLogSink_AddSink()
52 std::string dir_path = JavaToStdString(jni, j_dirPath); in JNI_CallSessionFileRotatingLogSink_GetLogData() local
53 rtc::CallSessionFileRotatingStreamReader file_reader(dir_path); in JNI_CallSessionFileRotatingLogSink_GetLogData()
57 << "CallSessionFileRotatingStream returns 0 size for path " << dir_path; in JNI_CallSessionFileRotatingLogSink_GetLogData()
/external/icing/icing/file/
Ddestructible-directory_test.cc31 std::string dir_path = GetTestTempDir() + "/dir1"; in TEST() local
32 std::string file_path = dir_path + "/file1"; in TEST()
36 ASSERT_TRUE(filesystem.CreateDirectoryRecursively(dir_path.c_str())); in TEST()
45 DestructibleDirectory destructible(&filesystem, dir_path); in TEST()
47 EXPECT_THAT(destructible.dir(), Eq(dir_path)); in TEST()
52 EXPECT_FALSE(filesystem.DirectoryExists(dir_path.c_str())); in TEST()
/external/jsoncpp/devtools/
Dantglob.py99 def glob(dir_path, argument
108 dir_path = dir_path.replace('/',os.path.sep)
127 dir_path = child_dirs.pop()
128 for entry in listdir(dir_path):
129 full_path = os.path.join(dir_path, entry)
152 yield os.path.join(dir_path, entry)
155 return list(glob_impl(dir_path))
/external/python/pyfakefs/pyfakefs/tests/
Dfake_filesystem_shutil_test.py83 dir_path = os.path.join(directory, "subdir")
84 self.create_dir(dir_path)
90 self.assertFalse(os.path.exists(dir_path))
95 dir_path = os.path.join(directory, "subdir")
96 self.create_dir(dir_path)
101 self.assertFalse(os.path.exists(dir_path))
107 dir_path = self.make_path("foo")
108 self.create_file(os.path.join(dir_path, "bar"))
109 file_path = os.path.join(dir_path, "baz")
113 shutil.rmtree(dir_path)
[all …]
Dfake_os_test.py139 dir_path = self.make_path("xyzzy", "plugh")
142 self.create_file(self.os.path.join(dir_path, f))
145 path_des = self.os.open(dir_path, os.O_RDONLY)
457 dir_path = self.make_path("foo")
458 self.os.mkdir(dir_path + self.os.sep + self.os.sep)
459 self.assertTrue(self.os.path.exists(dir_path))
611 dir_path = self.make_path("dir")
612 self.create_dir(dir_path)
614 self.os.open(dir_path, os.O_RDWR | os.O_DIRECTORY)
630 dir_path = self.make_path("dir")
[all …]
/external/chromium-trace/catapult/dependency_manager/dependency_manager/
Ddependency_manager_util.py25 def RemoveDir(dir_path): argument
26 assert os.path.isabs(dir_path)
28 dir_path = u'\\\\?\\' + dir_path
29 if os.path.isdir(dir_path):
30 shutil.rmtree(dir_path, onerror=_WinReadOnlyHandler)
Ddependency_manager_util_unittest.py106 def CreateZipArchiveFromDir(self, dir_path): argument
109 archive_path = shutil.make_archive(base_path, 'zip', dir_path)
140 dir_path = self.tmp_dir
142 dir_path = u'\\\\?\\' + dir_path
148 contents_dir_path = os.path.join(dir_path, archive_suffix)
154 archive_path = shutil.make_archive(base_path, 'zip', dir_path)
/external/chromium-trace/catapult/devil/devil/utils/
Dzip_utils.py41 for dir_path, _, file_names in os.walk(path):
42 dir_arc_path = os.path.join(arc_path, os.path.relpath(dir_path, path))
43 logger.debug('dir: %s -> %s', dir_path, dir_arc_path)
44 zip_file.write(dir_path, dir_arc_path, zipfile.ZIP_STORED)
46 file_path = os.path.join(dir_path, f)
/external/sdv/vsomeip/third_party/boost/filesystem/include/boost/filesystem/
Ddirectory.hpp421 …ectory_iterator_construct(recursive_directory_iterator& it, const path& dir_path, unsigned int opt…
442 …ectory_iterator_construct(recursive_directory_iterator& it, const path& dir_path, unsigned int opt…
449 explicit recursive_directory_iterator(const path& dir_path) in recursive_directory_iterator() argument
451 …detail::recursive_directory_iterator_construct(*this, dir_path, static_cast< unsigned int >(direct… in recursive_directory_iterator()
454 recursive_directory_iterator(const path& dir_path, system::error_code& ec) in recursive_directory_iterator() argument
456 …detail::recursive_directory_iterator_construct(*this, dir_path, static_cast< unsigned int >(direct… in recursive_directory_iterator()
459 …recursive_directory_iterator(const path& dir_path, BOOST_SCOPED_ENUM_NATIVE(directory_options) opt… in recursive_directory_iterator() argument
461 …detail::recursive_directory_iterator_construct(*this, dir_path, static_cast< unsigned int >(opts),… in recursive_directory_iterator()
464 …recursive_directory_iterator(const path& dir_path, BOOST_SCOPED_ENUM_NATIVE(directory_options) opt… in recursive_directory_iterator() argument
466 …detail::recursive_directory_iterator_construct(*this, dir_path, static_cast< unsigned int >(opts),… in recursive_directory_iterator()
[all …]
/external/webrtc/rtc_base/
Dfile_rotating_stream.h33 FileRotatingStream(absl::string_view dir_path,
130 CallSessionFileRotatingStream(absl::string_view dir_path,
156 FileRotatingStreamReader(absl::string_view dir_path,
168 CallSessionFileRotatingStreamReader(absl::string_view dir_path);
Dfile_rotating_stream.cc182 FileRotatingStream::FileRotatingStream(absl::string_view dir_path, in FileRotatingStream() argument
186 : dir_path_(AddTrailingPathDelimiterIfNeeded(dir_path)), in FileRotatingStream()
195 RTC_DCHECK(IsFolder(dir_path)); in FileRotatingStream()
343 absl::string_view dir_path, in CallSessionFileRotatingStream() argument
345 : FileRotatingStream(dir_path, in CallSessionFileRotatingStream()
388 absl::string_view dir_path, in FileRotatingStreamReader() argument
390 file_names_ = GetFilesWithPrefix(AddTrailingPathDelimiterIfNeeded(dir_path), in FileRotatingStreamReader()
425 absl::string_view dir_path) in CallSessionFileRotatingStreamReader() argument
426 : FileRotatingStreamReader(dir_path, kCallSessionLogPrefix) {} in CallSessionFileRotatingStreamReader()
/external/cronet/tot/base/files/
Dscoped_temp_dir_unittest.cc115 FilePath dir_path = dir.GetPath(); in TEST() local
116 EXPECT_TRUE(DirectoryExists(dir_path)); in TEST()
119 EXPECT_EQ(dir_path, other_dir.GetPath()); in TEST()
120 EXPECT_TRUE(DirectoryExists(dir_path)); in TEST()
123 EXPECT_FALSE(DirectoryExists(dir_path)); in TEST()
/external/cronet/stable/base/files/
Dscoped_temp_dir_unittest.cc115 FilePath dir_path = dir.GetPath(); in TEST() local
116 EXPECT_TRUE(DirectoryExists(dir_path)); in TEST()
119 EXPECT_EQ(dir_path, other_dir.GetPath()); in TEST()
120 EXPECT_TRUE(DirectoryExists(dir_path)); in TEST()
123 EXPECT_FALSE(DirectoryExists(dir_path)); in TEST()
/external/crosvm/devices/src/virtio/vhost/user/device/fs/sys/
Dlinux.rs39 dir_path: PathBuf, in jail_and_fork()
53 create_base_minijail(dir_path.as_path(), limit) in jail_and_fork()
55 create_base_minijail_without_pivot_root(dir_path.as_path(), limit) in jail_and_fork()
78 if dir_path != Path::new("/") { in jail_and_fork()
81 j.enter_pivot_root(&dir_path)?; in jail_and_fork()
/external/autotest/site_utils/admin/
Dclean_staged_images.py40 for dir_path, dir_names, file_names in os.walk(root):
41 if os.path.basename(dir_path) in _EXEMPTED_DIRECTORIES:
42 logging.debug('Skipping %s', dir_path)
46 yield dir_path
/external/autotest/utils/
Dunittest_suite.py165 for dir_path, sub_dirs, file_names in os.walk(start):
171 os.unlink(os.path.join(dir_path, file_name))
175 print('Skipping', dir_path)
182 file_path = os.path.join(dir_path, file_name)
190 path_no_py = os.path.join(dir_path, file_name).rstrip('.py')
/external/cronet/stable/build/util/lib/proto/
Dmeasures.py92 def dump(dir_path: str) -> None:
94 os.makedirs(dir_path, exist_ok=True)
95 with open(os.path.join(dir_path, TEST_SCRIPT_METRICS_JSONPB_FILENAME),
Dexception_recorder.py108 def dump(dir_path: str) -> None:
110 os.makedirs(dir_path, exist_ok=True)
111 with open(os.path.join(dir_path, EXCEPTION_OCCURRENCES_FILENAME),
/external/angle/build/util/lib/proto/
Dmeasures.py92 def dump(dir_path: str) -> None:
94 os.makedirs(dir_path, exist_ok=True)
95 with open(os.path.join(dir_path, TEST_SCRIPT_METRICS_JSONPB_FILENAME),
/external/linux-kselftest/tools/testing/selftests/filesystems/fat/
Drun_fat_tests.sh58 local dir_path="${MNT_PATH}/subdir"
60 local new_path="${dir_path}/new_file"
62 sudo mkdir -p "${dir_path}"
/external/bazelbuild-rules_python/python/private/pypi/whl_installer/
Dnamespace_pkgs.py74 def add_pkgutil_style_namespace_pkg_init(dir_path: Path) -> None:
85 ns_pkg_init_filepath = os.path.join(dir_path, "__init__.py")
88 raise ValueError("%s already contains an __init__.py file." % dir_path)
/external/cronet/tot/build/util/lib/proto/
Dmeasures.py92 def dump(dir_path: str) -> None:
94 os.makedirs(dir_path, exist_ok=True)
95 with open(os.path.join(dir_path, TEST_SCRIPT_METRICS_JSONPB_FILENAME),
/external/libese/libese-hw/nxp/pn80t/
Dlinux_spidev.c81 char dir_path[256]; in gpio_configure() local
93 if (snprintf(dir_path, sizeof(dir_path), "/sys/class/gpio/gpio%d/direction", in gpio_configure()
94 num) >= (int)sizeof(dir_path)) { in gpio_configure()
109 fd = open(dir_path, O_WRONLY); in gpio_configure()

123456