The File Manager (a recently added feature) allows you to look inside the book project archive and browse at the file level. You may also add, edit, or delete files inside. The File Manager is basically a file explorer for the inner content of your ebook. Since KPUB2 project files are based on EPUB, the structure is based on web technologies (HTML, JS, and CSS). For a nice and straight-forward understanding of the EPUB format, please refer to the blog article Alice in EPUB-Land: Understanding the EPUB format.



Opening the File Manager


The File Manager may be access in one of two ways. The first way is by clicking on the File Manager button beside the book cover image.



The second way to open the File Manager is from the chapter options. For any opened chapter, click on the Show in File Manager button at the bottom right corner.




Navigation in the File Manager


The File Manage opens in a window of its own. It is divided into two columns: the left column showing a list of the parent folders along with the current folder, and the right (wider) column showing the current folder's contents. Different icons are used to depict folders or different file types. You can enter any folder in the list by simply double-clicking on it. To go to a parent folder from the parent folders list, a single click would suffice.



At anytime, you may exit the File Manager by clicking the Exit File Manager button located at the top right.



Importing files and folders


Files and folders may be imported into the File Manager as easily as dragging and dropping. Highlight the files or folders you want to copy from your machine, and drag them into the File Manager window. You will be asked to confirm whether you want to copy these files. Click Yes. You will now see the new files or folders copied in the currently selected folder.


Alternatively, you may do it the classic way, and select the files or folders through the Import Files or Import Folder buttons located at the top.




Creating new files and folders


Text-based files may be newly created in the File Manager by clicking the New File button.



Rename the file and its extension as you prefer. To start editing the file, simply double-click on it. Similarly, to create a new folder, follow the same steps, but click on the New Folder button instead.



Editing files


You may edit text-based files from within the File Manager. The supported file extensions are JS, CSS, XML, HTML, XHTML, TXT, HTM, and OPF. Double-click any file of those extensions to open the file editor. The editor comes with a few keyboard shortcuts that are listed on the right.



After doing the changes you need to, click on the Apply and exit button to save the changes.