Symbolic Link

Ian Clark iclark at mail.ewu.edu
Tue Aug 21 19:05:01 EDT 2007


Hyuga wrote:
> On Aug 19, 4:29 pm, mosscliffe <mcl.off... at googlemail.com> wrote:
>> The source file is in an area which python can see, but not the
>> browser.  I am trying to make a link in a browser friendly area so I
>> can use it to display an image file.
> 
> You might want to try using an .htaccess file.  Place a file
> called .htaccess in the "browser friendly area" and place in it the
> line:
> 
> Options +FollowSymLinks
> 
> Assuming your hosting service will allow that, then it should work.
> If not, then why not just copy the image files?  Storage is cheap
> these days.
> 
> Hyuga
> 

My question would be why a symbolic link? Why not a hard link? Are the 
two directories on different mount points? After the script finishes 
does python need to see that image file again? Why not just move it?

Ian




More information about the Python-list mailing list