473,492 Members | 4,301 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Removing hidden files and folders with python ...

Hi,

I try to delete a whole directory-tree using shutil.rmtree(...)
But there are always the hidden files and folders (e.g. from the svn
..svn) left.

How can I delete -all- files and folders (also the hidden) with python?

Many Thanks
Konrad
Jan 30 '08 #1
0 1879

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4199
by: Antoon Pardon | last post by:
Can someone explain how I can check whether a file or folder is hidden, using python. I have found references to win32api on the web, which would provide what I need but I couldn't find the module...
3
2867
by: Pete Gomersall | last post by:
Hi All, I have seen many examples of deleting folders with subfolders and files. (system.io.directory/info etc delete method) However, I cannot find a decent code example which will work where...
3
8647
by: Saranjit Singh | last post by:
Hi, I am trying to get file listing that would ignore hidden files and folders. But using the Directory.GetFiles method seems to get all files and folders in the specified path irrespective of...
3
2334
by: Christian Blackburn | last post by:
Hi Gang, All I want is to be able to search a file for files matching a certain criteria. However, VB seems heart set on returning hidden folders along with my list of files. I've tried the...
9
10502
by: David Pratt | last post by:
Hi. I'm trying to clean files for packaging on mac using os.path.walk and want to clean the .DS_Store files that are hidden from view but could end up in code that I produce. # Clean mac...
19
3801
by: Badr.ALmuzini | last post by:
hi,there how can i make php file extension hidden in the URL somthing like this (http://mail.google.com/mail/?view) Regard....
11
10798
by: karthi84 | last post by:
hi, if i have selected view hidden files and folders option from the folder option it is not enabled. at the time of applying it works but if i close that window and open it again its not...
2
969
by: Benjamin Watine | last post by:
Hi, I'm about to develop a small python application and I wonder how to organize files in this application. I'm familar to java, so I'm tempted to use the same convention : 1 file per class and...
0
959
by: Gabriel Genellina | last post by:
En Fri, 05 Sep 2008 12:53:12 -0300, Benjamin Watine <watine@cines.fr> escribió: You don't *have* to artificially restrict yourself to one class per file. In Python it's common to place several...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7192
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4579
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3087
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
1397
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.