fprime icon indicating copy to clipboard operation
fprime copied to clipboard

fprime-gds: default file downlink directory can overwrite files

Open timcanham opened this issue 1 year ago • 1 comments

F´ Version v3.4.3
Affected Component n/a


Feature Description

Have GDS created a time-tag directory for file downlinks.

Make the default be logs/<time tag>/fprime-downlink to match telemetry and events.

Also, make a separate argument for uplink and downlink. It makes sense to automatically separate downlinked files, but uplink may wish to be in a common store.

Rationale

The default /tmp/username (or even overridden with --file-storage-directory) directory for file downlinks can cause new instances to overwrite older files, or cause parallel instances to clobber each other.

timcanham avatar Apr 03 '24 16:04 timcanham

Also discussed in https://github.com/nasa/fprime/issues/2658#issuecomment-2035578624

Joshua-Anderson avatar Apr 03 '24 21:04 Joshua-Anderson