Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #100249

real usable file/directory operation module?

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From oyster <lepto.python@gmail.com>
Newsgroups comp.lang.python
Subject real usable file/directory operation module?
Date Fri, 11 Dec 2015 11:04:17 +0800
Lines 8
Message-ID <mailman.125.1449803060.12405.python-list@python.org> (permalink)
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de xCcwaAQb5xu4KqkmbS/dvgDwgY6uuNndpu9ThXLrpBFw==
Return-Path <lepto.python@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.002
X-Spam-Evidence '*H*': 1.00; '*S*': 0.00; 'shutil': 0.07; 'subject:file': 0.07; 'already.': 0.09; 'subject:module': 0.09; '"d",': 0.16; '"destination': 0.16; "'%s'": 0.16; "'d',": 0.16; 'exists"': 0.16; 'real_dst': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'module,': 0.18; 'windows': 0.20; 'to:name:python-list@python.org': 0.20; 'example': 0.26; 'message- id:@mail.gmail.com': 0.27; 'skip:u 20': 0.28; 'raise': 0.29; 'subject:/': 0.30; 'received:google.com': 0.35; 'path': 0.35; 'but': 0.36; 'there': 0.36; 'received:209.85': 0.36; 'to:addr :python-list': 0.36; 'subject:?': 0.36; 'received:209': 0.38; 'to:addr:python.org': 0.40
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=40N7llMd+13OYy/z72On3ejnVm6htAMTDN5nJAbu6vY=; b=ri7bCi5o+GWL2aEhhksHCeijak3jep9+Pm+RDyPKZqn0EWCrVDW8zFBE2Mqvjgy0rH rGKVz+xm/ii0QUQxcPkbEkqTly+aXgEoC2ZT2m5O5U8pbVf4nOEiDkYZKNlJZkg//HCZ 8TAuc6PFslhVUgdMkNWfztPv4AKpr2VLiXuT665/OpeqIx+qrLdOGj7hbhdNY86tO6cp kh06U8zd3GIAq9i6DAp2n5wAZl0kgrDT9lKG1KBXbHxdu38qGyw1W9dCRAjXnlaqm9QO akgKkn1D/65FVZpLLiyxGifWbz63xPvi+IxakP2S9QYUMgtkGIaQ/KR5U6tVCKTs0nBs AAcQ==
X-Received by 10.25.40.138 with SMTP id o132mr6571258lfo.148.1449803057974; Thu, 10 Dec 2015 19:04:17 -0800 (PST)
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.20+
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Xref csiph.com comp.lang.python:100249

Show key headers only | View raw


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 comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

real usable file/directory operation module? oyster <lepto.python@gmail.com> - 2015-12-11 11:04 +0800

csiph-web