Home
last modified time | relevance | path

Searched refs:pathname (Results 1 – 25 of 648) sorted by relevance

12345678910>>...26

/external/webrtc/webrtc/base/
Dunixfilesystem.cc93 std::string pathname(path.pathname()); in CreateFolder() local
94 int len = pathname.length(); in CreateFolder()
95 if ((len == 0) || (pathname[len - 1] != '/')) in CreateFolder()
99 int res = ::stat(pathname.c_str(), &st); in CreateFolder()
111 } while ((len > 0) && (pathname[len - 1] != '/')); in CreateFolder()
113 if (!CreateFolder(Pathname(pathname.substr(0, len)), mode)) { in CreateFolder()
117 LOG(LS_INFO) << "Creating folder: " << pathname; in CreateFolder()
118 return (0 == ::mkdir(pathname.c_str(), mode)); in CreateFolder()
128 if (fs && !fs->Open(filename.pathname().c_str(), mode.c_str(), NULL)) { in OpenFile()
136 int fd = open(filename.pathname().c_str(), in CreatePrivateFile()
[all …]
Dwin32filesystem.cc34 bool Win32Filesystem::CreateFolder(const Pathname &pathname) { in CreateFolder() argument
35 if (pathname.pathname().empty() || !pathname.filename().empty()) in CreateFolder()
39 if (!Utf8ToWindowsFilename(pathname.pathname(), &path16)) in CreateFolder()
53 if (!pathname.parent_folder().empty()) { in CreateFolder()
54 Pathname parent(pathname); in CreateFolder()
55 parent.SetFolder(pathname.parent_folder()); in CreateFolder()
67 if (fs && !fs->Open(filename.pathname().c_str(), mode.c_str(), NULL)) { in OpenFile()
164 ToUtf16(filename.pathname()).c_str(), in CreatePrivateFile()
183 LOG(LS_INFO) << "Deleting file " << filename.pathname(); in DeleteFile()
188 return ::DeleteFile(ToUtf16(filename.pathname()).c_str()) != 0; in DeleteFile()
[all …]
Dpathutils.cc58 Pathname::Pathname(const std::string& pathname) in Pathname() argument
60 SetPathname(pathname); in Pathname()
91 std::string Pathname::pathname() const { in pathname() function in rtc::Pathname
92 std::string pathname(folder_); in pathname() local
93 pathname.append(basename_); in pathname()
94 pathname.append(extension_); in pathname()
95 if (pathname.empty()) { in pathname()
97 pathname.push_back('.'); in pathname()
98 pathname.push_back(folder_delimiter_); in pathname()
100 return pathname; in pathname()
[all …]
Dfileutils.cc63 directory_ = dir.pathname(); in DirectoryIterator()
67 std::string d = dir.pathname() + '*'; in DirectoryIterator()
161 new_dir.SetFolder(new_path.pathname()); in DirectoryIterator()
163 old_dir.SetFolder(old_path.pathname()); in DirectoryIterator()
169 if (di->Iterate(old_dir.pathname())) { in DirectoryIterator()
175 source.SetFolder(old_dir.pathname()); in DirectoryIterator()
176 dest.SetFolder(new_path.pathname()); in DirectoryIterator()
198 subdir.SetFolder(folder.pathname()); in DirectoryIterator()
238 LOG(LS_INFO) << "Path " << path.pathname() << std::endl; in DirectoryIterator()
246 path.SetFolder(temporary_path.pathname()); in DirectoryIterator()
[all …]
Dpathutils_unittest.cc22 EXPECT_FALSE(path.pathname().empty()); in TEST()
23 EXPECT_EQ(std::string("/"), path.pathname()); in TEST()
29 EXPECT_FALSE(path.pathname().empty()); in TEST()
30 EXPECT_EQ(std::string("foo"), path.pathname()); in TEST()
36 EXPECT_FALSE(path.pathname().empty()); in TEST()
37 EXPECT_EQ(kCWD, path.pathname()); in TEST()
43 EXPECT_FALSE(path.pathname().empty()); in TEST()
44 EXPECT_EQ(kCWD, path.pathname()); in TEST()
Dfileutils.h148 virtual bool CreateFolder(const Pathname &pathname) = 0;
191 virtual bool IsFolder(const Pathname& pathname) = 0;
194 virtual bool IsFile(const Pathname& pathname) = 0;
198 virtual bool IsAbsent(const Pathname& pathname) = 0;
201 virtual bool IsTemporaryPath(const Pathname& pathname) = 0;
286 static bool CreateFolder(const Pathname &pathname) { in CreateFolder() argument
287 return EnsureDefaultFilesystem()->CreateFolder(pathname); in CreateFolder()
331 static bool IsFolder(const Pathname& pathname) { in IsFolder() argument
332 return EnsureDefaultFilesystem()->IsFolder(pathname); in IsFolder()
335 static bool IsFile(const Pathname &pathname) { in IsFile() argument
[all …]
/external/python/setuptools/setuptools/
Dglob.py18 def glob(pathname, recursive=False): argument
29 return list(iglob(pathname, recursive=recursive))
32 def iglob(pathname, recursive=False): argument
43 it = _iglob(pathname, recursive)
44 if recursive and _isrecursive(pathname):
50 def _iglob(pathname, recursive): argument
51 dirname, basename = os.path.split(pathname)
52 if not has_magic(pathname):
54 if os.path.lexists(pathname):
55 yield pathname
[all …]
/external/python/cpython2/Lib/plat-mac/
Dmacresource.py62 pathname = os.path.join(dir, filename)
63 if os.path.exists(pathname):
68 refno = open_pathname(pathname)
77 def open_pathname(pathname, verbose=0): argument
84 refno = Res.FSOpenResourceFile(pathname, u'', 1)
92 pathname = _decode(pathname, verbose=verbose)
93 refno = Res.FSOpenResourceFile(pathname, u'', 1)
95 def resource_pathname(pathname, verbose=0): argument
103 refno = Res.FSOpenResourceFile(pathname, u'', 1)
111 pathname = _decode(pathname, verbose=verbose)
[all …]
/external/python/cpython3/Lib/
Dglob.py9 def glob(pathname, *, recursive=False): argument
20 return list(iglob(pathname, recursive=recursive))
22 def iglob(pathname, *, recursive=False): argument
33 it = _iglob(pathname, recursive, False)
34 if recursive and _isrecursive(pathname):
39 def _iglob(pathname, recursive, dironly): argument
40 dirname, basename = os.path.split(pathname)
41 if not has_magic(pathname):
44 if os.path.lexists(pathname):
45 yield pathname
[all …]
/external/python/cpython2/PC/bdist_wininst/
Dextract.c29 BOOL ensure_directory(char *pathname, char *new_part, NOTIFYPROC notify) in ensure_directory() argument
34 attr = GetFileAttributes(pathname); in ensure_directory()
37 if (!CreateDirectory(pathname, NULL) && notify) in ensure_directory()
39 "CreateDirectory (%s)", pathname); in ensure_directory()
41 notify(DIR_CREATED, pathname); in ensure_directory()
49 "CreateDirectory (%s)", pathname); in ensure_directory()
207 char pathname[MAX_PATH]; in unzip_archive() local
253 strcpy(pathname, dirname); in unzip_archive()
254 if (pathname[strlen(pathname)-1] != '\\') in unzip_archive()
255 strcat(pathname, "\\"); in unzip_archive()
[all …]
/external/python/cpython3/PC/bdist_wininst/
Dextract.c28 BOOL ensure_directory(char *pathname, char *new_part, NOTIFYPROC notify) in ensure_directory() argument
33 attr = GetFileAttributes(pathname); in ensure_directory()
36 if (!CreateDirectory(pathname, NULL) && notify) in ensure_directory()
38 "CreateDirectory (%s)", pathname); in ensure_directory()
40 notify(DIR_CREATED, pathname); in ensure_directory()
48 "CreateDirectory (%s)", pathname); in ensure_directory()
206 char pathname[MAX_PATH]; in unzip_archive() local
252 strcpy(pathname, dirname); in unzip_archive()
253 if (pathname[strlen(pathname)-1] != '\\') in unzip_archive()
254 strcat(pathname, "\\"); in unzip_archive()
[all …]
/external/python/cpython2/Mac/scripts/
Dmkestrres.py107 pathname = EasyDialogs.AskFileForOpen(message="Where is GUSI sys/errno.h?")
108 if pathname:
109 fp = open(pathname)
113 pathname = EasyDialogs.AskFileForOpen(message="Select cerrno (MSL) or cancel")
114 if pathname:
115 fp = open(pathname)
119 pathname = EasyDialogs.AskFileForOpen(message="Where is MacErrors.h?")
120 if pathname:
121 fp = open(pathname)
125 pathname = EasyDialogs.AskFileForOpen(message="Where is mkestrres-MacErrors.h?")
[all …]
/external/python/cpython2/Lib/
Dmacurl2path.py10 def url2pathname(pathname): argument
16 tp = urllib.splittype(pathname)[0]
20 if pathname[:3] == '///':
21 pathname = pathname[2:]
22 elif pathname[:2] == '//':
24 components = pathname.split('/')
52 def pathname2url(pathname): argument
55 if '/' in pathname:
57 components = pathname.split(':')
70 if os.path.isabs(pathname):
Dglob.py18 def glob(pathname): argument
27 return list(iglob(pathname))
29 def iglob(pathname): argument
38 dirname, basename = os.path.split(pathname)
39 if not has_magic(pathname):
41 if os.path.lexists(pathname):
42 yield pathname
46 yield pathname
55 if dirname != pathname and has_magic(dirname):
/external/squashfs-tools/squashfs-tools/
Dunsquashfs_info.c45 char *pathname = NULL; variable
52 if(pathname) in disable_info()
53 free(pathname); in disable_info()
55 pathname = NULL; in disable_info()
61 if(pathname) in update_info()
62 free(pathname); in update_info()
64 pathname = name; in update_info()
121 if(pathname) in info_thrd()
122 INFO("%s\n", pathname); in info_thrd()
Dunsquashfs_xattr.c40 void write_xattr(char *pathname, unsigned int xattr) in write_xattr() argument
55 ERROR("Failed to read xattrs for file %s\n", pathname); in write_xattr()
66 int res = lsetxattr(pathname, xattr_list[i].full_name, in write_xattr()
85 pathname); in write_xattr()
109 pathname); in write_xattr()
120 pathname, strerror(errno)); in write_xattr()
133 xattr_list[i].full_name, pathname); in write_xattr()
/external/selinux/libselinux/src/
Dselinux_restorecon.c597 static int restorecon_sb(const char *pathname, const struct stat *sb, in restorecon_sb() argument
605 const char *lookup_path = pathname; in restorecon_sb()
650 rc = filespec_add(sb->st_ino, newcon, pathname); in restorecon_sb()
654 "filespec_add error: %s\n", pathname); in restorecon_sb()
668 pathname, newcon); in restorecon_sb()
670 if (lgetfilecon_raw(pathname, &curcon) < 0) { in restorecon_sb()
683 pathname, curcon); in restorecon_sb()
703 if (lsetfilecon(pathname, newcon) < 0) in restorecon_sb()
712 pathname, curcon, newcon); in restorecon_sb()
718 pathname, curcon, newcon); in restorecon_sb()
[all …]
/external/selinux/libselinux/src/android/
Dandroid_platform.c1340 static int pkgdir_selabel_lookup(const char *pathname, in pkgdir_selabel_lookup() argument
1352 if (!strncmp(pathname, DATA_DATA_PREFIX, sizeof(DATA_DATA_PREFIX)-1)) { in pkgdir_selabel_lookup()
1353 pathname += sizeof(DATA_DATA_PREFIX) - 1; in pkgdir_selabel_lookup()
1354 } else if (!strncmp(pathname, DATA_USER_PREFIX, sizeof(DATA_USER_PREFIX)-1)) { in pkgdir_selabel_lookup()
1355 pathname += sizeof(DATA_USER_PREFIX) - 1; in pkgdir_selabel_lookup()
1356 while (isdigit(*pathname)) in pkgdir_selabel_lookup()
1357 pathname++; in pkgdir_selabel_lookup()
1358 if (*pathname == '/') in pkgdir_selabel_lookup()
1359 pathname++; in pkgdir_selabel_lookup()
1362 } else if (!strncmp(pathname, DATA_USER_DE_PREFIX, sizeof(DATA_USER_DE_PREFIX)-1)) { in pkgdir_selabel_lookup()
[all …]
/external/e2fsprogs/lib/ext2fs/
Dnamei.c26 const char *pathname, size_t pathlen, int follow,
33 char *pathname; in follow_link() local
54 pathname = (char *)&(ei.i_block[0]); in follow_link()
66 pathname = buffer; in follow_link()
81 pathname = buffer; in follow_link()
84 retval = open_namei(fs, root, dir, pathname, ei.i_size, 1, in follow_link()
98 const char *pathname, int pathlen, in dir_namei() argument
109 if ((c = *pathname) == '/') { in dir_namei()
111 pathname++; in dir_namei()
115 thisname = pathname; in dir_namei()
[all …]
/external/curl/packages/vms/
Dbuild_gnv_curl_pcsi_desc.com169 $ pathname = f$element(0, " ", line_in)
177 $ old_start = f$locate("[gnv.usr", pathname)
178 $ if old_start .lt. f$length(pathname)
180 $ pathname = "[gnv.beta" + pathname - "[gnv.usr"
184 $ nlink = "pcsi$destination:" + pathname
287 $ pathname = f$element(0, " ", line_in)
290 $ if pathname .eqs. "[gnv]usr.dir"
292 $ pathname = "[gnv]beta.dir"
294 $ old_start = f$locate("[gnv.usr", pathname)
295 $ if old_start .lt. f$length(pathname)
[all …]
/external/expat/conftools/
DPrintPath22 pathname=$PATH
37 -p* ) pathname="`echo $args | sed 's/^..//'`" ;;
58 pathname=`echo -E $pathname |
67 pathname=`echo $pathname |
93 for path in $pathname
/external/python/cpython2/Python/
Dimportdl.c17 const char *pathname, FILE *fp);
22 _PyImport_LoadDynamicModule(char *name, char *pathname, FILE *fp) in _PyImport_LoadDynamicModule() argument
28 if ((m = _PyImport_FindExtension(name, pathname)) != NULL) { in _PyImport_LoadDynamicModule()
42 p = _PyImport_GetDynLoadFunc(name, shortname, pathname, fp); in _PyImport_LoadDynamicModule()
65 if (PyModule_AddStringConstant(m, "__file__", pathname) < 0) in _PyImport_LoadDynamicModule()
68 if (_PyImport_FixupExtension(name, pathname) == NULL) in _PyImport_LoadDynamicModule()
73 name, pathname); in _PyImport_LoadDynamicModule()
/external/freetype/builds/mac/
Dftmac.c478 FT_FSPathMakeSpec( const UInt8* pathname, in FT_FSPathMakeSpec() argument
490 p = q = (const char *)pathname; in FT_FSPathMakeSpec()
507 if ( 255 < ft_strlen( (char *)pathname ) ) in FT_FSPathMakeSpec()
575 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument
585 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes()
603 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in FT_FSPathMakeRes()
619 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument
628 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path()
643 if ( noErr != FT_FSPathMakeSpec( pathname, &spec, FALSE ) ) in get_file_type_from_path()
924 const UInt8* pathname ) in count_faces() argument
[all …]
/external/python/cpython2/Lib/distutils/
Dutil.py110 def convert_path (pathname): argument
120 return pathname
121 if not pathname:
122 return pathname
123 if pathname[0] == '/':
124 raise ValueError, "path '%s' cannot be absolute" % pathname
125 if pathname[-1] == '/':
126 raise ValueError, "path '%s' cannot end with '/'" % pathname
128 paths = string.split(pathname, '/')
138 def change_root (new_root, pathname): argument
[all …]
/external/freetype/src/base/
Dftmac.c280 FT_FSPathMakeRes( const UInt8* pathname, in FT_FSPathMakeRes() argument
287 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in FT_FSPathMakeRes()
305 get_file_type_from_path( const UInt8* pathname ) in get_file_type_from_path() argument
311 if ( noErr != FSPathMakeRef( pathname, &ref, FALSE ) ) in get_file_type_from_path()
547 const UInt8* pathname ) in count_faces() argument
563 err = lookup_lwfn_by_fond( pathname, lwfn_file_name, in count_faces()
702 const UInt8* pathname, in FT_New_Face_From_LWFN() argument
712 if ( noErr != FT_FSPathMakeRes( pathname, &res ) ) in FT_New_Face_From_LWFN()
806 const UInt8* pathname, in FT_New_Face_From_Suitcase() argument
817 if ( noErr != FT_FSPathMakeRes( pathname, &res_ref ) ) in FT_New_Face_From_Suitcase()
[all …]

12345678910>>...26