I’d like to provide a file ‘security net’ for my users using Z2JH.
My solution would be to utilize a share file system, mounted to each pod.
extraVolumes:
- name: trash
persistentVolumeClaim:
claimName: trash-pvc
extraVolumeMounts:
- name: trash
mountPath: # Would this be ~/.local/share/Trash? /.Trash?
subPath: trash
I can toggle delete_to_trash to True
in the jupyter_server_config.py
, and I know Jupyter uses the send2trash python extension to do so.
Because trash doesn’t exist in a container, this obviously doesn’t work by default - is there any way to tell send2trash where the trash directory is, or a pseudo one to use?