Home
last modified time | relevance | path

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

123

/external/chromium_org/chrome/installer/util/
Ddelete_after_reboot_helper.cc33 bool IsSafeDirectoryNameForDeletion(const base::FilePath& dir_name) { in IsSafeDirectoryNameForDeletion() argument
35 if (dir_name.empty()) in IsSafeDirectoryNameForDeletion()
41 const wchar_t* dir_name_str = dir_name.value().c_str(); in IsSafeDirectoryNameForDeletion()
96 bool ScheduleDirectoryForDeletion(const base::FilePath& dir_name) { in ScheduleDirectoryForDeletion() argument
97 if (!IsSafeDirectoryNameForDeletion(dir_name)) { in ScheduleDirectoryForDeletion()
98 LOG(ERROR) << "Unsafe directory name for deletion: " << dir_name.value(); in ScheduleDirectoryForDeletion()
103 DWORD dir_attributes = ::GetFileAttributes(dir_name.value().c_str()); in ScheduleDirectoryForDeletion()
108 PLOG(ERROR) << "Could not GetFileAttributes for " << dir_name.value(); in ScheduleDirectoryForDeletion()
115 << dir_name.value(); in ScheduleDirectoryForDeletion()
122 base::FileEnumerator file_enum(dir_name, false, in ScheduleDirectoryForDeletion()
[all …]
/external/e2fsprogs/lib/e2p/
Diod.c26 int iterate_on_dir (const char * dir_name, in iterate_on_dir() argument
35 max_len = pathconf(dir_name, _PC_NAME_MAX); in iterate_on_dir()
55 dir = opendir (dir_name); in iterate_on_dir()
69 if ((*func)(dir_name, de, private)) in iterate_on_dir()
/external/chromium_org/chrome/common/extensions/docs/server2/
Dgcs_file_system.py39 def _ListDir(dir_name, recursive=False): argument
40 AssertIsDirectory(dir_name)
46 files = cloudstorage_api.listbucket('/' + dir_name, delimiter=delimiter)
47 return [os_path.filename.lstrip('/')[len(dir_name):] for os_path in files]
50 (dir_name, traceback.format_exc()))
Dlocal_file_system.py31 def _ListDir(dir_name): argument
34 files = os.listdir(dir_name)
36 raise FileNotFoundError('os.listdir failed for %s: %s' % (dir_name, e))
41 if os.path.isdir(os.path.join(dir_name, os_path)):
Ddirectory_zipper.py42 dir_name = posixpath.basename(base_dir)
43 zip_file.writestr(posixpath.join(dir_name, file_name), file_contents)
Dcompiled_file_system.py184 for dir_name, listing in futures.Get().iteritems():
188 dirs += add_prefix(dir_name, new_dirs)
193 assert dir_name.startswith(path)
194 files += add_prefix(dir_name[len(path):], new_files)
/external/e2fsprogs/misc/
Dlsattr.c127 static int lsattr_dir_proc (const char * dir_name, struct dirent * de, in lsattr_dir_proc() argument
132 int dir_len = strlen(dir_name); in lsattr_dir_proc()
136 if (dir_len && dir_name[dir_len-1] == '/') in lsattr_dir_proc()
137 sprintf (path, "%s%s", dir_name, de->d_name); in lsattr_dir_proc()
139 sprintf (path, "%s/%s", dir_name, de->d_name); in lsattr_dir_proc()
De4defrag.c1727 char dir_name[PATH_MAX + 1]; in main() local
1769 memset(dir_name, 0, PATH_MAX + 1); in main()
1802 if (get_mount_point(argv[i], dir_name, PATH_MAX) < 0) in main()
1804 if (lstat64(dir_name, &buf) < 0) { in main()
1820 strncpy(dir_name, argv[i], strnlen(argv[i], PATH_MAX)); in main()
1840 if (realpath(argv[i], dir_name) == NULL) { in main()
1880 if (dir_name[mount_dir_len] != '\0') { in main()
1885 if (strncmp(lost_found_dir, dir_name, in main()
1888 (dir_name[strnlen(lost_found_dir, in main()
1890 dir_name[strnlen(lost_found_dir, in main()
[all …]
Dchattr.c255 static int chattr_dir_proc (const char * dir_name, struct dirent * de, in chattr_dir_proc() argument
263 path = malloc(strlen (dir_name) + 1 + strlen (de->d_name) + 1); in chattr_dir_proc()
270 sprintf(path, "%s/%s", dir_name, de->d_name); in chattr_dir_proc()
/external/chromium_org/native_client_sdk/src/examples/api/file_io/
Dfile_io.cc132 const std::string& dir_name = file_name; in HandleMessage() local
134 callback_factory_.NewCallback(&FileIoInstance::List, dir_name)); in HandleMessage()
136 const std::string& dir_name = file_name; in HandleMessage() local
138 callback_factory_.NewCallback(&FileIoInstance::MakeDir, dir_name)); in HandleMessage()
275 void List(int32_t /* result */, const std::string& dir_name) { in List() argument
281 pp::FileRef ref(file_system_, dir_name.c_str()); in List()
308 void MakeDir(int32_t /* result */, const std::string& dir_name) { in MakeDir() argument
313 pp::FileRef ref(file_system_, dir_name.c_str()); in MakeDir()
/external/e2fsprogs/ext2ed/
Ddir_com.c219 char *ptr,full_dir_name [500],dir_name [500],temp [500],temp2 [500]; in type_dir___cd() local
225 ptr=parse_word (command_line,dir_name); in type_dir___cd()
241 strcpy (dir_name,full_dir_name); in type_dir___cd()
246 strncpy (dir_name,full_dir_name,ptr-full_dir_name); in type_dir___cd()
247 dir_name [ptr-full_dir_name]=0; in type_dir___cd()
253 strcpy (name_search,dir_name); /* name_search is used to hold the required entry name */ in type_dir___cd()
255 if (dir_entry_ptr->name_len != strlen (dir_name) || in type_dir___cd()
256 strncmp (dir_name,dir_entry_ptr->name,dir_entry_ptr->name_len)!=0) in type_dir___cd()
308 …wprintw (command_win,"Error - Directory entry %s not found.\n",dir_name); /* Hmm, an invalid path … in type_dir___cd()
/external/chromium_org/sync/internal_api/test/
Dtest_internal_components_factory.cc57 const std::string& dir_name, const base::FilePath& backing_filepath) { in BuildDirectoryBackingStore() argument
61 new syncable::InMemoryDirectoryBackingStore(dir_name)); in BuildDirectoryBackingStore()
64 new syncable::OnDiskDirectoryBackingStore(dir_name, in BuildDirectoryBackingStore()
/external/chromium_org/build/
Ddir_exists.py14 def _is_dir(dir_name): argument
15 return str(os.path.isdir(dir_name))
/external/e2fsprogs/debugfs/
Dfilefrag.c43 const char *dir_name; member
193 cp = malloc(strlen(fs->dir_name) + strlen(name) + 2); in filefrag_dir_proc()
196 fs->dir_name, name); in filefrag_dir_proc()
200 sprintf(cp, "%s/%s", fs->dir_name, name); in filefrag_dir_proc()
239 fs->dir_name = fs->name; in dir_iterate()
257 fs->dir_name = p->name; in dir_iterate()
/external/chromium_org/sync/syncable/
Din_memory_directory_backing_store.cc11 const std::string& dir_name) in InMemoryDirectoryBackingStore() argument
12 : DirectoryBackingStore(dir_name), in InMemoryDirectoryBackingStore()
Don_disk_directory_backing_store.cc27 const std::string& dir_name, const base::FilePath& backing_filepath) in OnDiskDirectoryBackingStore() argument
28 : DirectoryBackingStore(dir_name), in OnDiskDirectoryBackingStore()
Ddirectory_backing_store.h48 explicit DirectoryBackingStore(const std::string& dir_name);
73 DirectoryBackingStore(const std::string& dir_name,
/external/chromium_org/sync/test/
Dtest_directory_backing_store.cc14 const std::string& dir_name, sql::Connection* db) in TestDirectoryBackingStore() argument
15 : DirectoryBackingStore(dir_name, db) { in TestDirectoryBackingStore()
/external/chromium_org/content/browser/fileapi/
Dnative_file_util_unittest.cc94 base::FilePath dir_name = Path("test_dir"); in TEST_F() local
96 NativeFileUtil::CreateDirectory(dir_name, in TEST_F()
100 EXPECT_TRUE(NativeFileUtil::DirectoryExists(dir_name)); in TEST_F()
101 EXPECT_TRUE(base::DirectoryExists(dir_name)); in TEST_F()
104 NativeFileUtil::CreateDirectory(dir_name, in TEST_F()
109 NativeFileUtil::DeleteDirectory(dir_name)); in TEST_F()
110 EXPECT_FALSE(base::DirectoryExists(dir_name)); in TEST_F()
111 EXPECT_FALSE(NativeFileUtil::DirectoryExists(dir_name)); in TEST_F()
Dlocal_file_util_unittest.cc203 const char *dir_name = "test_dir"; in TEST_F() local
207 CreateURL(dir_name), in TEST_F()
212 ASSERT_TRUE(base::GetFileInfo(LocalPath(dir_name), &info)); in TEST_F()
219 file_util()->Touch(context.get(), CreateURL(dir_name), in TEST_F()
222 ASSERT_TRUE(base::GetFileInfo(LocalPath(dir_name), &info)); in TEST_F()
/external/chromium_org/sync/internal_api/
Dinternal_components_factory_impl.cc62 const std::string& dir_name, const base::FilePath& backing_filepath) { in BuildDirectoryBackingStore() argument
64 new syncable::OnDiskDirectoryBackingStore(dir_name, backing_filepath)); in BuildDirectoryBackingStore()
/external/chromium_org/base/test/launcher/
Dtest_results_tracker.cc137 FilePath dir_name = path.DirName(); in Init() local
138 if (!DirectoryExists(dir_name)) { in Init()
140 << "Creating the directory: " << dir_name.value(); in Init()
142 if (!base::CreateDirectory(dir_name)) { in Init()
143 LOG(ERROR) << "Failed to created directory " << dir_name.value(); in Init()
/external/chromium_org/base/nix/
Dxdg_util.cc42 FilePath GetXDGUserDirectory(const char* dir_name, const char* fallback_dir) { in GetXDGUserDirectory() argument
44 char* xdg_dir = xdg_user_dir_lookup(dir_name); in GetXDGUserDirectory()
/external/chromium_org/third_party/WebKit/Source/core/inspector/
Dgenerate-inspector-protocol-version408 dir_name = os.path.dirname(input_path)
414 if len(dir_name) == 0:
415 dir_name = "."
416 baseline_path = os.path.normpath(dir_name + "/Inspector-" + version + ".json")
/external/lldb/source/Core/
DFileSpecList.cpp220 ConstString dir_name = path_spec.GetDirectory(); in GetFilesMatchingPartialPath()
222 if (dir_name == NULL) in GetFilesMatchingPartialPath()

123