Jeremy Jones wrote:
>>The script executes, no error messages, but the glob call turns up nothing
>>while the identical call running from a console does in fact turn up files
>>names as expected.
>>
>>
> Wild guess, but I'm thinking your webserver process doesn't have
> permissions to look in your directory.
>
> Following is alternating root shell and IPython shell:
>
> [EMAIL PROTECTED]:~ # chmod 777 /bam
> [EMAIL PROTECTED]:~ # ls -ld /bam
> drwxrwxrwx 2 root root 96 Jul 8 14:53 /bam
>
> In [4]: glob.glob("/bam/*txt")
> Out[4]: ['/bam/foo.txt', '/bam/bar.txt']
>
> [EMAIL PROTECTED]:~ # chmod 000 /bam
> [EMAIL PROTECTED]:~ # ls -ld /bam
> d--------- 2 root root 96 Jul 8 14:53 /bam
>
> In [5]: glob.glob("/bam/*txt")
> Out[5]: []
>
>
> HTH,
>
> Jeremy Jones
Thanks! Thing does work when I do globs of the local apache directories.
--
http://mail.python.org/mailman/listinfo/python-list