[BangPypers] remove svn checkout folder
Shashidhar Paragonda
shashidhar85 at gmail.com
Fri Oct 21 09:07:21 CEST 2011
Dear Python hackers
>> I checkout folder from repository to sat c:/MY/Application/TEMP
folder (TEMP folder i create)
>> I read a file from destination folder and perform some task and
close it
>> Now after performing task I need to delete entire checkout
folder from TEMP
>> I tried first changing the mod of respective folder using
*os.chmod(path/to/folder,
0666)
>>* Then i tried *shutil.rmtree(path/to/folder/) but here I am
facing permission denied error
code : os.chmod(path/to/folder, 0777)
if os.access(path/to/folder, os.R_OK):
shutil.rmtree(path/to/folder/)
is there any problem in this code or which is best solution for the
above requirement.
*
Thank you for help in advance.
--
-----------------------------------
Regards,
Shashidhar N.Paragonda
shashidhar85 at gmail.com
+919449073835
More information about the BangPypers
mailing list