Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #100249 > unrolled thread
| Started by | oyster <lepto.python@gmail.com> |
|---|---|
| First post | 2015-12-11 11:04 +0800 |
| Last post | 2015-12-11 11:04 +0800 |
| Articles | 1 — 1 participant |
Back to article view | Back to comp.lang.python
real usable file/directory operation module? oyster <lepto.python@gmail.com> - 2015-12-11 11:04 +0800
| From | oyster <lepto.python@gmail.com> |
|---|---|
| Date | 2015-12-11 11:04 +0800 |
| Subject | real usable file/directory operation module? |
| Message-ID | <mailman.125.1449803060.12405.python-list@python.org> |
there is shutil module, but I find it limits the user heavily. For
example, I want to move 2 directories "a/scene" and "c/scene" to "d",
but there is "scene" under d already. Then shutil.move will raise
Error, "Destination path '%s' already exists" % real_dst
So is there any module, which allow me move/copy like Windows does.
for example
useableShutil.move('a/scene', 'd', overwite=True)
Back to top | Article view | comp.lang.python
csiph-web