py Documentation - Read the Docs
py Documentation - Read the Docs
py Documentation - Read the Docs
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>py</strong> <strong>Documentation</strong>, Release 1.4.27.dev1<br />
in os.path and similar to <strong>the</strong> commands of <strong>the</strong> svn client.<br />
strpath<br />
string path<br />
rev<br />
revision<br />
url<br />
url of this WC item<br />
dump(obj)<br />
pickle object into path location<br />
svnurl()<br />
return current SvnPath for this WC-item.<br />
switch(url)<br />
switch to given URL.<br />
checkout(url=None, rev=None)<br />
checkout from url to local wcpath.<br />
update(rev=’HEAD’, interactive=True)<br />
update working co<strong>py</strong> item to given revision. (None -> HEAD).<br />
write(content, mode=’w’)<br />
write content into local filesystem wc.<br />
dirpath(*args)<br />
return <strong>the</strong> directory Path of <strong>the</strong> current Path.<br />
ensure(*args, **kwargs)<br />
ensure that an args-joined path exists (by default as a file). if you specify a keyword argument ‘directory=True’<br />
<strong>the</strong>n <strong>the</strong> path is forced to be a directory path.<br />
mkdir(*args)<br />
create & return <strong>the</strong> directory joined with args.<br />
add()<br />
add ourself to svn<br />
remove(rec=1, force=1)<br />
remove a file or a directory tree. ‘rec’ursive is ignored and considered always true (because of underlying<br />
svn semantics.<br />
co<strong>py</strong>(target)<br />
co<strong>py</strong> path to target.<br />
rename(target)<br />
rename this path to target.<br />
lock()<br />
set a lock (exclusive) on <strong>the</strong> resource<br />
unlock()<br />
unset a previously set lock<br />
cleanup()<br />
remove any locks from <strong>the</strong> resource<br />
status(updates=0, rec=0, externals=0)<br />
return (collective) Status object for this file.<br />
10 Chapter 2. <strong>py</strong>.path