Ticket #21873 (new enhancement)
fs-traverse: Add -strip option to remove path prefix
| Reported by: | raimue@… | Owned by: | macports-tickets@… |
|---|---|---|---|
| Priority: | Normal | Milestone: | MacPorts Future |
| Component: | base | Version: | |
| Keywords: | Cc: | ||
| Port: |
Description
fs-traverse currently returns the full path name combined from the path argument and the "local" file name. It would be helpful to have an option to get the "local" part only.
Example:
fs-traverse f /path/to/foo {
puts $f
}
=>
/path/to/foo/file1
/path/to/foo/file2
...
fs-traverse -strip f /path/to/foo {
puts $f
}
=>
file1
file2
...
Change History
Note: See
TracTickets for help on using
tickets.

