A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://mail.python.org/pipermail/python-dev/2010-July/102475.html below:

[Python-Dev] mkdir -p in python

[Python-Dev] mkdir -p in python [Python-Dev] mkdir -p in pythonHrvoje Niksic hrvoje.niksic at avl.com
Wed Jul 28 09:29:33 CEST 2010
On 07/27/2010 06:18 PM, Alexander Belopolsky wrote:
> On Tue, Jul 20, 2010 at 10:20 AM, R. David Murray<rdmurray at bitdance.com>  wrote:
>>  I'd go with putting it in shutil.
>
> +1
>
> I would also call it shutil.mktree which will go well with
> shutil.rmtree next to it.

Note that mktree is not analogous to rmtree - while rmtree removes a 
directory tree beneath a specified directory, mktree would only create a 
single "branch", not an entire tree.  I'd imagine a mktree function to 
accept a data structure describing the tree to be created.

If you're going for a short name distinctive from mkdir, I propose 
mksubdirs.
More information about the Python-Dev mailing list

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4