Re: Windows: get owner and group of a file

2006-12-07 Thread MRAB
kai rosenthal wrote: > Hello, > > with ls -l on windows I get > -rw-r--r-- 1 500 everyone 320 Nov 09 09:35 myfile > > How can I get on windows with a standard python 2.2 (without windows > extensions) the information "500" and "everyone" (owner and group)? > Also I cannot use popen('ls -l'). > > W

RE: Windows: get owner and group of a file

2006-12-06 Thread Tim Golden
[Duncan Booth] | You can get the owner by doing os.popen('dir /q') and parsing | the output, but it is a string not a number (which I guess is why | stat/lstat can't return a value). Good one; I'd forgotten about that. However, I don't know if the OP's restriction against popen ("ls- l") exten

Re: Windows: get owner and group of a file

2006-12-06 Thread Duncan Booth
"kai rosenthal" <[EMAIL PROTECTED]> wrote: > Hello, > > with ls -l on windows I get > -rw-r--r-- 1 500 everyone 320 Nov 09 09:35 myfile > > How can I get on windows with a standard python 2.2 (without windows > extensions) the information "500" and "everyone" (owner and group)? > Also I cannot u

Re: Windows: get owner and group of a file

2006-12-06 Thread Duncan Booth
Fredrik Lundh <[EMAIL PROTECTED]> wrote: > Tim Golden wrote: > >> Wow. Python 2.2. No extensions. Not even popen (). You don't >> want much, do you? I *think* the answer is that you can't. > > does the "group" concept even exist on Windows ? cannot recall I've > ever seen "ls -l" print anythin

Re: Windows: get owner and group of a file

2006-12-06 Thread Tim Chase
>> with ls -l on windows I get >> -rw-r--r-- 1 500 everyone 320 Nov 09 09:35 myfile > > Are you by any chance running cygwin? That comes with ls, but > windows doesn't. Another alternative might be mounting their Windows-formatted drive from within a *nix-like OS. These permissions are usually

RE: Windows: get owner and group of a file

2006-12-06 Thread Tim Golden
[Fredrik Lundh] | Tim Golden wrote: | | > Wow. Python 2.2. No extensions. Not even popen (). You don't | > want much, do you? I *think* the answer is that you can't. | | does the "group" concept even exist on Windows ? cannot recall I've | ever seen "ls -l" print anything but "everyone"... |

Re: Windows: get owner and group of a file

2006-12-06 Thread Diez B. Roggisch
kai rosenthal wrote: > Hello, > > with ls -l on windows I get > -rw-r--r-- 1 500 everyone 320 Nov 09 09:35 myfile > > How can I get on windows with a standard python 2.2 (without windows > extensions) the information "500" and "everyone" (owner and group)? > Also I cannot use popen('ls -l'). Ar

Re: Windows: get owner and group of a file

2006-12-06 Thread Fredrik Lundh
Tim Golden wrote: > Wow. Python 2.2. No extensions. Not even popen (). You don't > want much, do you? I *think* the answer is that you can't. does the "group" concept even exist on Windows ? cannot recall I've ever seen "ls -l" print anything but "everyone"... -- http://mail.python.org/mail

RE: Windows: get owner and group of a file

2006-12-06 Thread Tim Golden
[kai rosenthal] | with ls -l on windows I get | -rw-r--r-- 1 500 everyone 320 Nov 09 09:35 myfile | | How can I get on windows with a standard python 2.2 (without windows | extensions) the information "500" and "everyone" (owner and group)? | Also I cannot use popen('ls -l'). Wow. Python 2.2. No