/pkg/src/modules/portable/ |
H A D | os_darwin.py | 34 is_admin, get_userid, get_username, chown, rename, remove, link, \ 35 split_path, get_root, assert_mode namespace
|
H A D | os_aix.py | 35 is_admin, get_userid, get_username, rename, remove, link, split_path, \ 36 get_root, assert_mode, copyfile namespace
|
H A D | os_windows.py | 106 # On Windows, rename to existing file is not allowed, so the 119 # and deleted later when the file is no longer in use. For a rename to a 120 # destination locked with type 1 or 2, rename throws an OSError exception. 124 # contained within a single file system, thus making the rename feasible. 125 # The empty_trash method is called at the end of rename to cleanup any 126 # trash files that were left from earlier calls to rename, typically by 128 # time, so the real work is only done the first time a rename operation is 186 # this rename will raise an exception if the file is 188 os.rename(path, os.path.join(tdir, os.path.basename(path))) 190 def rename(sr function [all...] |
H A D | __init__.py | 52 # of OS or filesystem implementations, such as chown() or rename(). 152 def rename(src, dst): function 157 EnvironmentError if the rename fails."""
|
H A D | os_sunos.py | 38 get_usernames_by_gid, is_admin, get_userid, get_username, chown, rename, \ 39 remove, link, copyfile, split_path, get_root, assert_mode namespace
|
H A D | os_unix.py | 259 def rename(src, dst): function 261 os.rename(src, dst) 263 # Handle the case where we tried to rename a file across a 269 # filesystem as the destination, rename into place, and unlink 284 os.rename(tmpdst, dst)
|
/pkg/src/modules/file_layout/ |
H A D | file_manager.py | 186 portable.rename(cur_full_path, 216 portable.rename(cur_full_path, 252 # service or other race conditions, rename the source 255 portable.rename(src_path, cur_full_path) 266 portable.rename(src_path, dest_full_path) 291 # so loop again to retry rename.
|
/pkg/src/tests/api/ |
H A D | t_plat.py | 65 # rename a file on top of another file which already exists 72 portable.rename(path1, path2) 103 portable.rename(path1, exefile)
|
H A D | t_api_search.py | 1378 portable.rename(tmp, ffh_path) 1512 portable.rename(orig_path, dest_path) 1522 portable.rename(dest_path, orig_path) 1556 portable.rename(dest_path, orig_path) 1584 portable.rename(dest_path, ffh_path) 2022 portable.rename(orig_fn, dest_fn)
|
/pkg/src/modules/actions/ |
H A D | file.py | 93 to rename the file to itself.""" 95 os.rename(path, path) 188 # Only rename old file if this is a transition to 277 portable.rename(final_path, old_path) 285 portable.rename(temp, final_path) 575 # a downgrade since that isn't allowed across rename or obsolete
|
H A D | driver.py | 293 os.rename(datp, dap) 377 os.rename(dltp, dlp) 513 os.rename(dltp, dlp) 978 os.rename(dltp, dlp)
|
/pkg/src/tests/cli/ |
H A D | t_sysrepo.py | 591 os.rename(p5p_path, renamed_p5p_path) 600 os.rename(renamed_p5p_path, p5p_path) 816 # rename the cache file, then symlink it 817 os.rename(full_cache_path, full_cache_path + ".new") 860 os.rename(sysrepo_conf, saved_sysrepo_conf) 866 os.rename(repo_dir, repo_dir + ".new") 876 os.rename(repo_dir + ".new", repo_dir)
|
H A D | t_https.py | 112 portable.rename(opath, npath) 125 portable.rename(npath, opath)
|
H A D | t_depot_config.py | 553 os.rename(self.rdir2, broken_rdir) 560 os.rename(broken_rdir, self.rdir2) 562 os.rename(self.rdir2, broken_rdir) 596 os.rename(broken_rdir, self.rdir2)
|
H A D | t_pkg_install.py | 1090 os.rename(old_path, new_path) 1093 os.rename(new_path, old_path) 1384 def corrupt_path(path, value="noodles\n", rename=False): 1387 if rename: 1388 os.rename(path, path + ".not-corrupt") 1481 corrupt_path(filepath, value="spaghetti\n", rename=True) 1483 os.rename(filepath + ".not-corrupt", filepath) 1502 corrupt_path(mfpath, value="spaghetti\n", rename=True) 1506 os.rename(mfpath + ".not-corrupt", mfpath) 1519 corrupt_path(catpath, value="spaghetti\n", rename [all...] |
/pkg/src/modules/client/ |
H A D | image.py | 2245 # Next, preserve the old installed state dir, rename the 2249 portable.rename(tmp_state_root, self._statedir) 2804 # Next, preserve the old installed state dir, rename the 2807 portable.rename(tmp_state_root, self._statedir) 3213 # Finally, rename the temporary files into their final place. 3219 portable.rename(sp, stripped_path) 3220 portable.rename(op, offsets_path) 3221 portable.rename(bp, conflicting_keys_path) 3231 portable.rename(sp, stripped_path) 3232 portable.rename(o [all...] |
H A D | bootenv.py | 259 bemgr.rename(orig_name, new_name)
|
/pkg/src/modules/ |
H A D | cfgfiles.py | 201 os.rename(name, self.filename)
|
H A D | manifest.py | 1377 portable.rename(fn, mfst_path) 1655 # create per-action type cache; use rename to avoid corrupt 1687 portable.rename(fn, 1699 portable.rename(fn, self.__cache_path(name))
|
H A D | search_storage.py | 364 portable.rename(orig_path, new_path)
|
H A D | indexer.py | 868 # unlock, immediately rename the old index directory, 874 portable.rename(self._index_dir, self._index_dir + ".old")
|
/pkg/src/tests/ |
H A D | run.py | 532 os.rename("{0}/pkg5".format(covdir), ".coverage")
|
/pkg/src/util/publish/ |
H A D | pkgfmt.py | 667 os.rename(tname, fname)
|
H A D | pkgsurf.py | 644 portable.rename(rmani.pathname, path)
|
/pkg/src/modules/server/ |
H A D | transaction.py | 793 portable.rename(src_mpath, dest_mpath)
|