All Samples(5234) | Call(4906) | Derive(0) | Import(328)
rename(old, new) Rename a file or directory.
src/d/u/dutils-0.0.10/dutils/sample/path.py dutils(Download)
def rename(self, new):
os.rename(self, new)
def renames(self, new):
os.renames(self, new)
src/f/u/fuse-python-0.2/example/xmp.py fuse-python(Download)
def rename(self, path, path1):
os.rename("." + path, "." + path1)
def link(self, path, path1):
os.link("." + path, "." + path1)
def chmod(self, path, mode):
src/p/y/PyMT-0.5.1/examples/apps/mtwitter/twitter.py PyMT(Download)
(path, self._root_directory))
if os.path.exists(path):
os.remove(path)
os.rename(temp_path, path)
def Remove(self,key):
path = self._GetPath(key)
src/e/t/etlpy-HEAD/source/samples/17_Find_JIRA_worklog_changes.py etlpy(Download)
if exists:
os.unlink("WORKLOG.csv")
os.rename("WORKLOG_new.csv", "WORKLOG.csv")
src/p/k/pksampler-HEAD/pk/povray/project.py pksampler(Download)
new_path = os.path.join(path, new_name)
print 'renaming %s to %s' % (old_path, new_path)
os.rename(old_path, new_path)
old_inc_path = os.path.join(path, old_name+'.inc')
new_inc_path = os.path.join(path, new_name+'.inc')
print 'renaming %s to %s' % (old_inc_path, new_inc_path)
os.rename(old_inc_path, new_inc_path)
old_pov_path = os.path.join(new_path, old_name+'.pov')
new_pov_path = os.path.join(new_path, new_name+'.pov')
os.rename(old_pov_path, new_pov_path)
src/s/k/skeleton-0.6/skeleton/examples/basic-package/distribute_setup.py skeleton(Download)
def _rename_path(path):
new_name = path + '.OLD.%s' % time.time()
log.warn('Renaming %s into %s', path, new_name)
os.rename(path, new_name)
return new_name
def _remove_flat_installation(placeholder):
src/k/a/kamaelia-HEAD/trunk/Code/Python/Kamaelia/Examples/DVB_Systems/Macro.py kamaelia(Download)
# move the transcoded file and eit data to final destination
print uid,"Moving finished files"
os.rename(encodingfile, finishedfile)
os.rename(waitingEIT, finishedEIT)
print uid,"Unlinking transcoder"
src/k/a/kamaelia-HEAD/trunk/Sketches/MPS/Examples/LUGRadio/Macro.py kamaelia(Download)
# move the transcoded file and eit data to final destination
print uid,"Moving finished files"
os.rename(encodingfile, finishedfile)
os.rename(waitingEIT, finishedEIT)
print uid,"Unlinking transcoder"
src/k/a/kamaelia-HEAD/Code/Python/Kamaelia/Examples/DVB_Systems/Macro.py kamaelia(Download)
# move the transcoded file and eit data to final destination
print uid,"Moving finished files"
os.rename(encodingfile, finishedfile)
os.rename(waitingEIT, finishedEIT)
print uid,"Unlinking transcoder"
src/k/a/kamaelia-HEAD/Sketches/MPS/Examples/LUGRadio/Macro.py kamaelia(Download)
# move the transcoded file and eit data to final destination
print uid,"Moving finished files"
os.rename(encodingfile, finishedfile)
os.rename(waitingEIT, finishedEIT)
print uid,"Unlinking transcoder"
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 Next