I have a folder mounted on the server that points to an sftp site.
I need to check via php whether we can see the folders inside it.
I tried
file_exists("/path/to/the/mount/folder");
but its returning false (which I kind of expected), I can navigate to it through the file system and using terminal.
(also tried is_dir && is_link)
Here’s how I mounted it from the shell
echo PASS | sshfs UNAME@URL: /path/goes/here -o password_stdin
This turned out to be a configuration problem.
In
/etc/fuse.confI uncommenteduser_allow_otherThen mounted with this command
Normal file/folder checking/reading functions will then work fine