Struct devlog::repository::LogRepository [−][src]
pub struct LogRepository { /* fields omitted */ }
Expand description
Represents a devlog repository
Implementations
Creates a handle to the devlog repository at the specified path. The directory may or may not exist.
Checks if the repository has been initialized.
Initializes the repository.
This creates the directory if it does not exist,
as well as the first devlog entry file with sequence number one.
Fails with an IOError
if the first devlog entry already exists.
Returns the path to the repository directory, which may or may not exist.
Returns all paths to devlog entry files in the repository. The paths are not necessarily ordered.
Returns the most recent devlog entry file paths.
limit
is the maximum number of paths that may be returned.
Returns the most recent devlog entry file path,
or None
if the repository has not yet been initialized.