Git Product home page Git Product logo

Comments (8)

ReimarBauer avatar ReimarBauer commented on June 8, 2024

I am not experienced with that, but we have it now on
https://anaconda.org/conda-forge/fs.sshfs for windows too :)

and may be someone could extract the pieces on https://github.com/conda-forge/fs.sshfs-feedstock

from fs.sshfs.

 avatar commented on June 8, 2024

Sorry for necromancing this issue, I'm very interested in using this, but I haven't bothered putting in the time into it yet since I can't find any info about if it works on windows or not.
If it does, could this be stated in some fashion in the readme.md so it's visible ?

from fs.sshfs.

althonos avatar althonos commented on June 8, 2024

@source83 : The library in itself is platform agnostic, so there's a 99% chance it works on Windows. I'd just like to setup AppVeyor to make that 100% 😉

from fs.sshfs.

 avatar commented on June 8, 2024

Thanks @althonos, another question:
Does it actually "mount" the drive or is the remote FS only accessible by the python object ?
As in here on windows, would it mount it up as a drive (g:,h:....)

from fs.sshfs.

ReimarBauer avatar ReimarBauer commented on June 8, 2024

@source83 the Pyfilesystem approach is not about mount, just to have a common interface to any file in a filesystem.

from the examples

import fs
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]")

I

from fs.sshfs.

ReimarBauer avatar ReimarBauer commented on June 8, 2024

Sorry for necromancing this issue, I'm very interested in using this, but I haven't bothered putting in the time into it yet since I can't find any info about if it works on windows or not.
If it does, could this be stated in some fashion in the readme.md so it's visible ?

We have builded it for windows too on conda-forge.
https://anaconda.org/conda-forge/fs.sshfs

This setup may help
https://github.com/conda-forge/fs.sshfs-feedstock/blob/master/appveyor.yml

from fs.sshfs.

 avatar commented on June 8, 2024

@source83 the Pyfilesystem approach is not about mount, just to have a common interface to any file in a filesystem.

from the examples

import fs
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]")

I

I think you answered my question here.
I was hoping to use this as a way to "mount" say d: to "/home/myuser/myfolder" like is possible with sshfs in windows cmd.
In linux, this can be done in fstab or on the command line (no problem there).
The problem I'm seeing with the current method I'm using of sshfs on the windows cmd is that the "mount" only last as long as the cmd window is open/running since it doesn't exit after running the command.
I was hoping to make a simple tray ui where I could "mount" or "unmount" as needed and access the "mounted" filesystem tree from the drive specified.

from fs.sshfs.

ReimarBauer avatar ReimarBauer commented on June 8, 2024

@source83 the Pyfilesystem approach is not about mount, just to have a common interface to any file in a filesystem.
from the examples

import fs
my_fs = fs.open_fs("ssh://[user[:password]@]host[:port]/[directory]")

I

I think you answered my question here.
I was hoping to use this as a way to "mount" say d: to "/home/myuser/myfolder" like is possible with sshfs in windows cmd.

mount is a concept of accessing filesystems.
pyfilesystem is a different approach for accessing files anywhere. This does not need a mount beforehand. Of course pyfilesystem can also use files on mounted directories, but a mount is not mandatory.

In linux, this can be done in fstab or on the command line (no problem there).
The problem I'm seeing with the current method I'm using of sshfs on the windows cmd is that the "mount" only last as long as the cmd window is open/running since it doesn't exit after running the command.
I was hoping to make a simple tray ui where I could "mount" or "unmount" as needed and access the "mounted" filesystem tree from the drive specified.

I started with a qt helper application, this can dynamicly use fs pathes. Maybe you are looking for something like that?

https://github.com/ReimarBauer/fs_filepicker

conda create -n fs_filepicker_env fs_filepicker
source activate fs_filepicker_env
fs_filepicker -u ftp://ftp.de.debian.org/debian

Besides sshfs I also use webdav to my nextcloud instance

regards
Reimar

from fs.sshfs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.