/bionic/libc/bionic/ |
link.cpp | 32 int link(const char* old_path, const char* new_path) { 33 return linkat(AT_FDCWD, old_path, AT_FDCWD, new_path, 0);
|
rename.cpp | 32 int rename(const char* old_path, const char* new_path) { 33 return renameat(AT_FDCWD, old_path, AT_FDCWD, new_path);
|
symlink.cpp | 32 int symlink(const char* old_path, const char* new_path) { 33 return symlinkat(old_path, AT_FDCWD, new_path);
|
/external/ltp/testcases/kernel/fs/mongo/ |
mongo_slinks.c | 23 char *new_path; local 41 new_path = strtok(NULL, "\t\n "); 43 if (!old_path || !new_path) /* empty lines at the end of file */ 47 if (symlink(old_path, new_path) != 0) { 52 if (lstat(new_path, &statbuf) == -1) { 59 new_path); 69 num = readlink(new_path, buffer, size);
|
/external/webrtc/webrtc/base/ |
fileutils.h | 150 // This moves a file from old_path to new_path, where "old_path" is a 156 const Pathname &new_path) = 0; 158 // This moves a directory from old_path to new_path, where "old_path" is a 163 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path) = 0; 165 // This attempts to move whatever is located at old_path to new_path, 167 bool MoveFileOrFolder(const Pathname &old_path, const Pathname &new_path) { 169 return MoveFile(old_path, new_path); 171 return MoveFolder(old_path, new_path); 175 // This copies a file from old_path to new_path. This method ASSERTs and 178 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path) = 0 [all...] |
win32filesystem.h | 42 // This moves a file from old_path to new_path. If the new path is on a 46 virtual bool MoveFile(const Pathname &old_path, const Pathname &new_path); 48 // Moves a folder from old_path to new_path. If the new path is on a different 51 virtual bool MoveFolder(const Pathname &old_path, const Pathname &new_path); 55 virtual bool CopyFile(const Pathname &old_path, const Pathname &new_path);
|
unixfilesystem.h | 64 // This moves a file from old_path to new_path, where "file" can be a plain 67 bool MoveFile(const Pathname& old_path, const Pathname& new_path) override; 68 bool MoveFolder(const Pathname& old_path, const Pathname& new_path) override; 73 bool CopyFile(const Pathname& old_path, const Pathname& new_path) override;
|
unixfilesystem.cc | 223 const Pathname &new_path) { 229 << " to " << new_path.pathname(); 230 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { 233 if (!CopyFile(old_path, new_path)) 242 const Pathname &new_path) { 248 << " to " << new_path.pathname(); 249 if (rename(old_path.pathname().c_str(), new_path.pathname().c_str()) != 0) { 252 if (!CopyFolder(old_path, new_path)) 268 const Pathname &new_path) { 270 << " to " << new_path.pathname() [all...] |
win32filesystem.cc | 232 const Pathname &new_path) { 238 << " to " << new_path.pathname(); 240 ToUtf16(new_path.pathname()).c_str()) != 0; 244 const Pathname &new_path) { 250 << " to " << new_path.pathname(); 252 ToUtf16(new_path.pathname()).c_str()) == 0) { 257 if (!CopyFolder(old_path, new_path)) 292 const Pathname &new_path) { 294 ToUtf16(new_path.pathname()).c_str(), TRUE) != 0;
|
/external/autotest/client/bin/result_tools/ |
zip_file_throttler.py | 45 new_path = os.path.join(os.path.dirname(file_info.path), new_name) 46 if os.path.exists(new_path): 47 utils_lib.LOG('File %s already exists, removing...' % new_path) 48 if not throttler_lib.try_delete_file_on_disk(new_path): 51 with tarfile.open(new_path, 'w:gz') as tar: 56 throttler_lib.try_delete_file_on_disk(new_path) 61 os.utime(new_path, (stat.st_atime, stat.st_mtime))
|
shrink_file_throttler.py | 65 new_path = os.path.join(os.path.dirname(file_info.path), 68 with open(new_path, 'w') as new_file, open(file_info.path) as old_file: 100 throttler_lib.try_delete_file_on_disk(new_path) 104 os.rename(new_path, file_info.path)
|
/external/chromium-trace/catapult/common/py_utils/py_utils/ |
shell_util.py | 14 def ScopedChangeDir(new_path): 16 _os.chdir(new_path)
|
/external/ltp/testcases/kernel/fs/iso9660/ |
isofs.sh | 61 local new_path="$cur_path/subdir_$i" 63 mkdir -p "$new_path" 65 dd if=/dev/urandom of="$new_path/file" bs=1024 count=100 >/dev/null 2>&1 67 gen_fs_tree "$new_path" $((cur_depth + 1))
|
/external/libcxx/test/std/experimental/filesystem/fs.op.funcs/fs.op.current_path/ |
current_path.pass.cpp | 55 const path new_path = StaticEnv::Dir; local 56 current_path(new_path); 57 TEST_CHECK(current_path() == new_path);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/experimental/filesystem/fs.op.funcs/fs.op.current_path/ |
current_path.pass.cpp | 55 const path new_path = StaticEnv::Dir; local 56 current_path(new_path); 57 TEST_CHECK(current_path() == new_path);
|
/external/syslinux/core/fs/ |
fs.c | 259 char *new_path; local 276 new_path = malloc(new_len); 277 if (!new_path) 280 copied = this_fs->fs_ops->readlink(inode, new_path); 283 new_path[copied] = '\0'; 284 dprintf("searchdir: Symlink: %s\n", new_path); 287 new_path[copied] = '/'; 288 strcpy(new_path + copied + 1, next_inode_name); 289 dprintf("searchdir: New path: %s\n", new_path); 293 path = next_inode_name = new_path; [all...] |
/external/ltp/testcases/kernel/controllers/cgroup_fj/ |
cgroup_fj_stress.sh | 119 local new_path="$cur_path/$i" 120 attach_task "$new_path" $((cur_depth+1)) "$ppid"
|
/external/skia/infra/bots/ |
win_toolchain_utils.py | 56 def resolve(win_toolchain_json, new_path): 58 _replace_in_file(win_toolchain_json, PLACEHOLDER, new_path)
|
/external/skqp/infra/bots/ |
win_toolchain_utils.py | 56 def resolve(win_toolchain_json, new_path): 58 _replace_in_file(win_toolchain_json, PLACEHOLDER, new_path)
|
/external/autotest/site_utils/lxc/ |
container_factory.py | 102 new_path=lxc_path, 114 new_path=lxc_path,
|
/external/python/cpython3/Lib/test/ |
test_modulefinder.py | 314 new_path = os.path.join(TEST_DIR, 'a', 'spam.py') 317 replace_paths=[(old_path, new_path)]) 319 expected = "co_filename %r changed to %r" % (old_path, new_path)
|
/external/trappy/tests/ |
test_results.py | 60 new_path = os.path.join(self.out_dir, "new_results.csv") 61 os.rename(old_path, new_path) 63 results_frame = get_results(new_path)
|
/external/tensorflow/tensorflow/contrib/session_bundle/ |
exporter.py | 62 new_path = os.path.join( 64 logging.info("Copying asset %s to path %s.", source_filepath, new_path) 66 if gfile.Exists(new_path): 70 logging.info("Removing file %s.", new_path) 71 gfile.Remove(new_path) 72 gfile.Copy(source_filepath, new_path)
|
/external/autotest/client/cros/audio/ |
audio_test_data.py | 69 new_path = '/tmp/test_raw_48000_S32_LE_2.raw' 86 new_path = path 92 new_path = (original_path_without_ext + '_' + 121 path_dst=new_path, 130 new_test_data = AudioTestData(path=new_path,
|
/external/libchrome/base/files/ |
file_util.cc | 250 FilePath new_path; local 252 new_path = path.InsertBeforeExtensionASCII(StringPrintf(" (%d)", count)); 253 if (!PathExists(new_path) && 254 (!have_suffix || !PathExists(FilePath(new_path.value() + suffix)))) {
|