I have a remote computer, and I mount its filesystem with sshfs to my local folder ~/user@host
, like that:
sshfs user@host: ~/user@host
Works nice, but I want to implement "lazy" mount: i.e. I don't want it to be mounted at system startup, but I want it to be mounted just when I'm trying to open my local folder ~/user@host
.
Probably there is some way to define like "filesystem hooks": just when user requests directory contents, some command should be executed. Is it possible?