Enhancement #977

bag-record should refuse to write to existing files

Added by J. Moringen about 12 years ago. Updated about 12 years ago.

Status:ResolvedStart date:03/30/2012
Priority:NormalDue 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

Revision add58938
Added by J. Moringen about 12 years ago

Added if-exists to open-bag in src/protocol.lisp
refs #977
  • src/protocol.lisp (open-bag): added if-exists keyword parameter;
    extended documentation string accordingly
    (open-bag pathname): pass if-exists to `open'

Revision 9b45650c
Added by J. Moringen about 12 years ago

Adapted test case in test/bag.lisp
refs #977
  • test/bag.lisp (test bag-root::smoke): adapted test to changed
    behavior of open-bag

Revision 066a3b4b
Added by J. Moringen about 12 years ago

Documented force option in manual/bag-record.rst
refs #977
  • manual/bag-record.rst: documented force commandline option

Revision 7efe5b83
Added by J. Moringen about 12 years ago

Support if-exists in src/rsb/{protocol,construction}.lisp
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'

Revision ab2b5d56
Added by J. Moringen about 12 years ago

Added commandline option force in bag-record/main.lisp
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.

Also available in: Atom PDF