# Tracking and Undoing File Operations

There are two features in Opus that help you keep track of changes you have made to files and folders.

### Undo

The **Undo** command can (usually) be used to undo the most recent action. Most actions can be undone - for example, if you rename a group of files incorrectly with a wildcard, you can undo the rename fairly easily. File deletes, however, can not be undone unless the delete was done to the recycle bin. You can find the **Undo** command in the **Edit** menu in a Lister (or press Ctrl+Z).

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-a88ab159c45f404df437dbcc8e73f3b721f2e8a4%2Fundo_history.png?alt=media)

Opus maintains a history of undoable functions. From the **Undo List** sub-menu, you can see the ten most recent actions, and undo any of them by selecting it from the list. Selecting the **More...** command from that sub-menu displays the [Utility Panel](https://chaoses-ib.gitbook.io/directory-opus/manual/basic_concepts/the_lister/utility_panel), showing the **Undo Log** page. This page displays a full list of undoable actions, and you can undo one, many or all actions from this page at the click of a button.

### File Log

While the undo log only shows the most recent undoable actions in the current session, the file log\*\* \*\*maintains a persistent log of all file operations (undoable or not). You can access the **File Log** from the [Utility Panel](https://chaoses-ib.gitbook.io/directory-opus/manual/basic_concepts/the_lister/utility_panel), or select the command directly from the **Help** menu.

By default the file log records the last 1000 file operations. You can see what sort of action occurred, the file involved, when it happened, and in the case of a copy or move, the destination folder.

![](https://3597805814-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3XSZSwWow0fDf6fQJobd%2Fuploads%2Fgit-blob-60dfee36ac0e0ebc19b39ba94f8b83264cc87d01%2Ffile_log_example.png?alt=media)

The file log can be extremely useful at times - if you've ever found that a file you knew was there has mysteriously disappeared, you can often find out what happened to it through the log. You can use the filter field to search for a file by name or path.

The **Save** button at the top of the log lets you export the log as a text file - useful if it's quite large and you want to search it in a text editor. You can configure the maximum size of the log, and control which operations are recorded, from the [**File Operations / Logging**](https://chaoses-ib.gitbook.io/directory-opus/manual/preferences/preferences_categories/file_operations/logging) page in Preferences.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chaoses-ib.gitbook.io/directory-opus/manual/file_operations/tracking_and_undoing_file_operations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
