Lines Matching refs:rename
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(src, dst):
195 os.rename(src, dst)
203 # finally rename the file
204 os.rename(src, dst)