컨텐츠로 건너뛰기

Storage

Data directory

The data directory is the directory where documents, templates and packs are stored. On the desktop you can found it in ~/Documents/Linwood/Butterfly. On mobile it’s in getExternalFilesDir(null)/Linwood/Butterfly. You can also change it in the settings under Data.

In this directory you will find a folder Documents, Templates and Packs.

Web

The application data is stored in your browser. It is stored in a local storage. Open the developer tools in your browser and you will see the data.

Native platforms

As default the application saves the data in your documents folder in a subfolder called “Linwood/Butterfly”. This folder is created when you save the first data. This folder can be changed in the settings.

Remote storage

The application can be saved in a remote server. This is useful if you want to share the data with other people or if you have multiple computers. Currently only the WebDAV protocol is supported.

To add a remote server, go to the settings and click on Remotes. Then click on Add remote. Add the URL of the remote server and the username and password. After that you can specify the folder where the data is stored.

To get the webdav url, please visit the documentation:

  • Nextcloud (it should look like this: https://nextcloud.example.com/remote.php/dav/files/username/, replace username and nextcloud.example.com with the correct values)

Offline sync

This feature allows you to edit your files on remote servers while you are offline. Open the popup menu on a file or folder and click on Sync. This will download the file or folder and save it locally. To sync the whole root directory, click on the checkmark in the create dialog or click on the remote in the setting and click on the checkmark in the manage section.

There are a few limitations:

  • You can only sync the top level of a directory. For example if you have a directory a/b/test.bfly, this file will not be synced.
  • You cannot delete a file or folder while you are offline.
  • You cannot add, edit or delete templates while you are offline.

Other storage methods

If you are on a native device you can also sync the application directory with your favorite platform. Google drive has an official app on windows and there are unofficial onces on the play store. On linux you can also use the native remote storage system and change your data directory to this or add a new external storage if you click on the add connection button.