Searched refs:rename (Results 1 - 25 of 34) sorted by relevance

12

/pkg/src/modules/portable/
H A Dos_darwin.py34 is_admin, get_userid, get_username, chown, rename, remove, link, \
35 split_path, get_root, assert_mode namespace
H A Dos_aix.py35 is_admin, get_userid, get_username, rename, remove, link, split_path, \
36 get_root, assert_mode, copyfile namespace
H A Dos_windows.py106 # 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__.py52 # of OS or filesystem implementations, such as chown() or rename().
152 def rename(src, dst): function
157 EnvironmentError if the rename fails."""
H A Dos_sunos.py38 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 Dos_unix.py259 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 Dfile_manager.py186 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 Dt_plat.py65 # rename a file on top of another file which already exists
72 portable.rename(path1, path2)
103 portable.rename(path1, exefile)
H A Dt_api_search.py1378 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 Dfile.py93 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 Ddriver.py293 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 Dt_sysrepo.py591 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 Dt_https.py112 portable.rename(opath, npath)
125 portable.rename(npath, opath)
H A Dt_depot_config.py553 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 Dt_pkg_install.py1090 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 Dimage.py2245 # 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 Dbootenv.py259 bemgr.rename(orig_name, new_name)
/pkg/src/modules/
H A Dcfgfiles.py201 os.rename(name, self.filename)
H A Dmanifest.py1377 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 Dsearch_storage.py364 portable.rename(orig_path, new_path)
H A Dindexer.py868 # unlock, immediately rename the old index directory,
874 portable.rename(self._index_dir, self._index_dir + ".old")
/pkg/src/tests/
H A Drun.py532 os.rename("{0}/pkg5".format(covdir), ".coverage")
/pkg/src/util/publish/
H A Dpkgfmt.py667 os.rename(tname, fname)
H A Dpkgsurf.py644 portable.rename(rmani.pathname, path)
/pkg/src/modules/server/
H A Dtransaction.py793 portable.rename(src_mpath, dest_mpath)

Completed in 69 milliseconds

12