Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8612641
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T04:40:46+00:00 2026-06-12T04:40:46+00:00

I have a folder mounted on the server that points to an sftp site.

  • 0

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
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T04:40:47+00:00Added an answer on June 12, 2026 at 4:40 am

    This turned out to be a configuration problem.

    In /etc/fuse.conf I uncommented user_allow_other

    Then mounted with this command

    echo PASS | sshfs UNAME@URL: /path/goes/here -o password_stdin,allow_other
    

    Normal file/folder checking/reading functions will then work fine

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following situation: There is a windows folder that has been mounted
I have folder home/admin. In this folder there is index.php. When i access to
I have a folder which contains few files and some directories which I need
My question I have folder contains the images in mat format how I can
I have an array of folders/files that looks like this: Array ( [Root Folder
I need to get POST data with spaces in it. I have folder with
I think I'm doing everything right to first create a folder that I can
I have folder in which there are no. of html files. Can i count
I can't understand some strange thing. I have folder structure: application/ controllers/ forms/ models/
If I have site www.mysite.com and then I have folder apache/htdocs as public folder

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.