Skip to main content

History System

Every organization operation is recorded.

This history allows Foldr to undo changes safely.

History Workflow​

Recorded Operations​

Foldr stores:

  • Source path
  • Destination path
  • Operation ID
  • Timestamp

Example:

Downloads/report.pdf
↓
Documents/report.pdf

Independent Operations​

Operations are tracked separately.

Operation A
Operation B
Operation C

Any operation can be restored independently.

Safe Undo​

Before restoring a file, Foldr verifies that the recorded state is still valid.

If the file has changed since the operation was recorded, Foldr skips it.

tip

This prevents accidental overwrites and protects newer changes.

Viewing History​

foldr history

Show all operations:

foldr history --all

Undoing Changes​

foldr undo

Specific operation:

foldr undo --id a1b2c3

Duplicate Removal​

warning

Duplicate removal cannot be undone.

Always preview duplicate removal before execution.


Continue Learning​

Next Steps​

Learn More​