Issue 1276768: dirutils.mkpath (verbose option does not work) (original) (raw)

Issue1276768

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:12 admin set github: 42324
2009-02-06 00:40:36 tarek set status: open -> closed
2009-02-06 00:32:52 tarek set messages: + versions: - Python 2.6, Python 3.0
2009-02-05 23:40:02 tarek set resolution: acceptedmessages: +
2009-02-05 08:56:14 tarek set assignee: tarek
2009-02-04 23:42:38 akitada set nosy: + akitada, tarektype: enhancement -> behaviormessages: + versions: + Python 3.0, Python 3.1, Python 2.7
2008-01-05 19:31:26 christian.heimes set versions: + Python 2.6
2005-08-30 15:59:39 gorilla_killa create