This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: dirutils.mkpath (verbose option does not work)
Type: behavior Stage:
Components: Distutils Versions: Python 3.1, Python 2.7
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: tarek Nosy List: akitada, gorilla_killa, nnorwitz, tarek
Priority: normal Keywords:

Created on 2005-08-30 15:59 by gorilla_killa, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
dir_util.py gorilla_killa, 2005-09-30 08:35 Copy of dir_util.py file that behaves as expected
Messages (5)
msg54606 - (view) Author: gorilla_killa (gorilla_killa) Date: 2005-08-30 15:59
The Verbose option does not work.

Looked at the python script for dir_utils.py and the
verbose parameter is not used in the code.

Please fix this simple bug.
msg54607 - (view) Author: Neal Norwitz (nnorwitz) * (Python committer) Date: 2005-09-30 06:29
Logged In: YES 
user_id=33168

Can you provide a patch which behaves as you expect?  Thanks.
msg81179 - (view) Author: Akira Kitada (akitada) * Date: 2009-02-04 23:42
Still present in 2.6/3.0
msg81237 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-02-05 23:40
I don't see the point of making mkpath and remove_tree more verbose than
what they are now.

log.info is called in both function and verbose is never used.

So I guess the best way to activate verbose is to make its default
value to 1 and change the code so log.info calls are made when verbose=1,
and are not made if verbose=0.

This way, the known verbosity is not changed and can be cut down if needed.
 

Now for create_tree, it will pass the verbose value to mkpath.

Last, copy_tree will act the same way and pass along verbose to copy_file.
msg81241 - (view) Author: Tarek Ziadé (tarek) * (Python committer) Date: 2009-02-06 00:32
done in r69324. Won't merge it in 2.6/3.0
History
Date User Action Args
2022-04-11 14:56:12adminsetgithub: 42324
2009-02-06 00:40:36tareksetstatus: open -> closed
2009-02-06 00:32:52tareksetmessages: + msg81241
versions: - Python 2.6, Python 3.0
2009-02-05 23:40:02tareksetresolution: accepted
messages: + msg81237
2009-02-05 08:56:14tareksetassignee: tarek
2009-02-04 23:42:38akitadasetnosy: + akitada, tarek
type: enhancement -> behavior
messages: + msg81179
versions: + Python 3.0, Python 3.1, Python 2.7
2008-01-05 19:31:26christian.heimessetversions: + Python 2.6
2005-08-30 15:59:39gorilla_killacreate