consultant1027 Posted June 10, 2011 Share Posted June 10, 2011 It appears the -e file exists test operator doesn't work on files that are referenced via symbolic link directories? Anyone know of a solution to test for file existence in symbolic link directory? Link to comment https://forums.phpfreaks.com/topic/239012-e-file-exists-symbolic-links-doesnt-work/ Share on other sites More sharing options...
requinix Posted June 10, 2011 Share Posted June 10, 2011 referenced via symbolic link directories? What? Link to comment https://forums.phpfreaks.com/topic/239012-e-file-exists-symbolic-links-doesnt-work/#findComment-1228113 Share on other sites More sharing options...
trq Posted June 10, 2011 Share Posted June 10, 2011 Works fine for me. thorpe@anapnea[~]+ if [ -e www/foo.txt ] ; then echo 'found' ; fi www is a link to /home/www/thorpe Link to comment https://forums.phpfreaks.com/topic/239012-e-file-exists-symbolic-links-doesnt-work/#findComment-1228140 Share on other sites More sharing options...
requinix Posted June 11, 2011 Share Posted June 11, 2011 Apparently this is a Perl question, not a Linux or PHP question. Link to comment https://forums.phpfreaks.com/topic/239012-e-file-exists-symbolic-links-doesnt-work/#findComment-1228150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.