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? Quote 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? Quote 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 Quote 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. Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.