ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

DonationCoder.com Software > DC Member Programs and Projects

Remove folder

(1/1)

kartal:
Hi

This tiny Python script utility is using Gnu rm.exe to forcefully and peacefully removes folders. I think it works better than windows delete. It will popup a window where you put the path to intended delete folder. For now it does only one folder(recursively) at a time. I made this utility because I was sick of waiting for Window`s delete to figure out what to delete.

http://shup.com/Shup/173115/FolderRemove.zip

Use it on your own risk. I use it here happily :)

f0dder:
Why depend on an external tool instead of coding the removal routine in Python? And when using an external tool, why depend on gnu rm instead of Windows' built-in RMDIR /S ?

kartal:
Why depend on an external tool instead of coding the removal routine in Python? And when using an external tool, why depend on gnu rm instead of Windows' built-in RMDIR /S ?
-f0dder (June 16, 2009, 07:43 AM)
--- End quote ---

Well because it was easier to just use Gnu tool rather than trying to write my own recursive Python folder deletetion. I was just trying to get something going asap.

I just like the Gnu rm`s options and I use other Gnu Core Utils here as well, so it was just a personal taste.

I will just make one version with RMDIR instead later today.


kartal:
I just tried using "rmdir" inside my script, I could not get it to work. I think it is because Popen does not pass rmdir as a command. Since I do not use it myself I wont dwell around it much really.



edit: I fixed the issue, it was a shell issue. Here is the windows version but it does not have any verbose mode.

http://shup.com/Shup/172957/FolderRemove_windows.zip

Navigation

[0] Message Index

Go to full version