att / rcloud

Collaborative data analysis and visualization
http://rcloud.social
MIT License
429 stars 141 forks source link

upload to working directory #2760

Open s-u opened 2 years ago

s-u commented 2 years ago

It would be nice to allow uploads to the current directory. Currently, all (non-notebook) uploads go to the designated user's directory, but when working on projects it is often desirable to upload directly into the project directory which is typically the working directory. It would be nice to add that to the choices.

Practical considerations: the "current directory" is not well defined with respect to the various cell types, but using the compute's working directory is a good start. Once we implement #2757 that would be then the natural place.

(Semi-related idea: allow the notebook to define a true project directory - which would be the initial working directory for all languages regardless. This is in most commonly used concept in practice.)

gordonwoodhull commented 2 years ago

It’s a good idea.

One possible complication: the upload ocaps are on the control process:

https://github.com/att/rcloud/blob/develop/rcloud.support/R/ocaps.R#L255-L260