Enhancement #977
bag-record should refuse to write to existing files
Status: | Resolved | Start date: | 03/30/2012 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | J. Moringen | % Done: | 100% | |
Category: | - | |||
Target version: | Robotics Service Bus - rsb-0.7 |
Description
When a specified output file already exists, bag-record
should refuse to write to the file.
In addition, there should be options for replacing and, maybe, extending the file.
Associated revisions
Added if-exists to open-bag in src/protocol.lisp
refs #977
refs #977
- src/protocol.lisp (open-bag): added if-exists keyword parameter;
extended documentation string accordingly
(open-bag pathname): pass if-exists to `open'
Adapted test case in test/bag.lisp
refs #977
refs #977
- test/bag.lisp (test bag-root::smoke): adapted test to changed
behavior of open-bag
Documented force option in manual/bag-record.rst
refs #977
refs #977
- manual/bag-record.rst: documented force commandline option
Support if-exists in src/rsb/{protocol,construction}.lisp
refs #977
refs #977
- src/rsb/protocol.lisp (events->bag): added keyword parameter
if-exists; updated documentation string accordingly - src/rsb/construction.lisp (define-open-bag-method): added keyword
parameter if-exists; pass to `open-bag'
Added commandline option force in bag-record/main.lisp
fixes #977
fixes #977
- bag-record/main.lisp (update-synopsis): added commandline option
force
(main): depending on presence of force commandline option pass
appropriate if-exists argument to `events->bag'
History
#1 Updated by J. Moringen about 12 years ago
- Target version set to rsb-0.7
#2 Updated by J. Moringen about 12 years ago
- Status changed from In Progress to Resolved
- % Done changed from 0 to 100
Applied in changeset r430.