4 Leas file format
The save file is a tar archive containing the following files in a directory named after the save file’s filename (e.g. a save file named book.leas would, when un-tarred, be a directory called book):
- accounts - a CSV file containing the metadata for each account, one line for each account. There is no header line giving column names. The fields are (in this order):
- Account Type - one of expense, income, asset, liability.
- Account Name - the name of the account
- Opening Balance - the opening balance of the account.
- account_name.csv - for each account, there is a separate CSV file (the format of the filename for this CSV file implies that account names in leas need to be valid filenames). There is no header line giving column names. Each row in the file is a transaction. The fields are (in this order):
- Account Name - will be the same for all transactions in the file, just the account name.
- Amount - the amount of money added to or subtracted from the account.
- Day - the day of the transaction (YYYY-MM-DD)
- Description - a description of the transaction