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
[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
"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
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
>> 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
[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"...
|
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
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
[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