Re: Python glob and raw string

2014-01-17 Thread Mark Lawrence
On 17/01/2014 16:45, Xaxa Urtiz wrote: [masses of double spaced lines snipped] Would you please read and action this https://wiki.python.org/moin/GoogleGroupsPython to prevent us seeing the double line spacing in your posts, thanks. -- My fellow Pythonistas, ask not what our language can do

Re: Python glob and raw string

2014-01-17 Thread Xaxa Urtiz
Le jeudi 16 janvier 2014 19:14:30 UTC+1, Neil Cerutti a écrit : > On 2014-01-16, Xaxa Urtiz <> wrote: > > > Hello everybody, i've got a little problem, i've made a script > > > which look after some files in some directory, typically my > > > folder are organized like this : > > > > > > [share

Re: Python glob and raw string

2014-01-16 Thread Neil Cerutti
On 2014-01-16, Chris Angelico wrote: >> Hmmm... I might be doing too much in __init__. ;) > > Hmm, why is it even a class? :) I guess you elided all the > stuff that makes it impractical to just use a non-class > function. I didn't remove anything that makes it obviously class-worthy, just timest

Re: Python glob and raw string

2014-01-16 Thread Chris Angelico
On Fri, Jan 17, 2014 at 5:14 AM, Neil Cerutti wrote: > class Miner: > def __init__(self, archive): > # setup goes here; prepare to acquire the data > self.descend(os.path.join(archive, '*')) > > def descend(self, path): > for fname in glob.glob(os.path.join(path, '*

Re: Python glob and raw string

2014-01-16 Thread Neil Cerutti
On 2014-01-16, Xaxa Urtiz wrote: > Hello everybody, i've got a little problem, i've made a script > which look after some files in some directory, typically my > folder are organized like this : > > [share] > folder1 > ->20131201 > -->file1.xml > -->file2.txt > ->20131202 > -->file9696009.tmp > --

Re: Python glob and raw string

2014-01-16 Thread Xaxa Urtiz
Le jeudi 16 janvier 2014 17:49:57 UTC+1, Xaxa Urtiz a écrit : > Hello everybody, i've got a little problem, i've made a script which look > after some files in some directory, typically my folder are organized like > this : > > > > [share] > > folder1 > > ->20131201 > > -->file1.xml > > --

Python glob and raw string

2014-01-16 Thread Xaxa Urtiz
Hello everybody, i've got a little problem, i've made a script which look after some files in some directory, typically my folder are organized like this : [share] folder1 ->20131201 -->file1.xml -->file2.txt ->20131202 -->file9696009.tmp -->file421378932.xml etc so basically in the share i'v