Open shuyanglin opened 7 years ago
Unfortunately sandstorm sharing operates at the grain level, so there's no real way to share just a part of a grain.
One thing we could look into might be to use Sandstorm's publishing API for a sort of "share with link" functionality where you could request a hidden URL to a specific file that you could share. It wouldn't work as well for directories however, since we'd have to generate a static directory listing and publish it and it wouldn't get updated when the files were updated.
How I envision this working:
Currently the Publishing tab works by symlinking /var/davros/data
to /var/www
. Instead, we'd have an action that would create a random directory and symlink that to the file. For instance, if you had photo.jpg
in the root of your davros grain and wanted to share it, we'd symlink /var/davros/data/photo.jpg
to /var/www/tah6taiZfooch6OhahXahfo3/photo.jpg
and give you that link.
currently it only allows users to share the whole grain, is it possible to share a subfolder of a grain? thanks!