'''use Jython'''
import shutil
print dir(shutil)
There is no, shutil.move, how does one move a file with Jython? and while we at it, how does one delete a file with Jython?
'''use Jython'''
import shutil
print dir(shutil)
There is no, shutil.move, how does one move a file with Jython? and while we at it, how does one delete a file with Jython?
os.rename()
to move, and os.unlink()
to delete -- just like Python pre-shutil
.
If you need support for moving across filesystems, consider just copying CPython's shutil.py
into your project. The Python License is flexible enough to allow this (even for commercial projects), as long as licensing and attribution information are retained.