Re: Storing of folder structure in SQL DB

2012-09-20 Thread santhosh . sweetmemory
On Friday, September 21, 2012 11:57:05 AM UTC+5:30, santhosh.s...@gmail.com wrote: > folderid name parentid > > > > 1 cricket 0 > > 2 india 1 > > 3 sachin 2 > > 4 tennis 0 > > 5 saniamirza 4 > > > > i need coding for

Re: Storing of folder structure in SQL DB

2012-09-20 Thread santhosh . sweetmemory
folderid name parentid 1 cricket 0 2 india 1 3 sachin 2 4 tennis 0 5 saniamirza 4 i need coding for this table..folder id 'll automatically populate.. -- http://mail.python.org/mailman/listinfo/python-list

Re: Storing of folder structure in SQL DB

2007-04-06 Thread Sergei Minayev
Amit Khemka: > On 5 Apr 2007 04:58:22 -0700, Sergei Minayev <[EMAIL PROTECTED]> wrote: > > Hi All! > > Can you please help me with the following problem: > > I need to store a copy of local folders structure in MySQL database. > > I have chosen the following table structure for that: > > -

Re: Storing of folder structure in SQL DB

2007-04-05 Thread Marc 'BlackJack' Rintsch
In <[EMAIL PROTECTED]>, Amit Khemka wrote: > On 4/5/07, Amit Khemka <[EMAIL PROTECTED]> wrote: >> On 5 Apr 2007 04:58:22 -0700, Sergei Minayev <[EMAIL PROTECTED]> wrote: > >> An Example: >> >> import os >> root='/my/root/directory' >> id =0 >> tree={root:(-1, id)} >> id+=1 >> for path, dirs, file

Re: Storing of folder structure in SQL DB

2007-04-05 Thread Amit Khemka
On 4/5/07, Amit Khemka <[EMAIL PROTECTED]> wrote: > On 5 Apr 2007 04:58:22 -0700, Sergei Minayev <[EMAIL PROTECTED]> wrote: > An Example: > > import os > root='/my/root/directory' > id =0 > tree={root:(-1, id)} > id+=1 > for path, dirs, files in os.walk(root): > for dir in dirs: >

Re: Storing of folder structure in SQL DB

2007-04-05 Thread Amit Khemka
On 5 Apr 2007 04:58:22 -0700, Sergei Minayev <[EMAIL PROTECTED]> wrote: > Hi All! > Can you please help me with the following problem: > I need to store a copy of local folders structure in MySQL database. > I have chosen the following table structure for that: > ---

Storing of folder structure in SQL DB

2007-04-05 Thread Sergei Minayev
Hi All! Can you please help me with the following problem: I need to store a copy of local folders structure in MySQL database. I have chosen the following table structure for that: | id | id_uplink | folder_name | -