User`s guide
KwikNet Virtual File System
K
A
DAK
243
7.2 Virtual File System Definition
Each KwikNet Virtual File System volume is defined by directives contained in a text file
called a VFS Definition File (VDF). A typical VFS Definition File is illustrated in Figure
7.2-1. The directives can be recognized as strings of the form ...XXXXXXX beginning in
column one and followed by zero or more parameters. Any line of text which is not a
valid directive is treated as a comment and is ignored.
; KwikNet Virtual File System created as follows:
;
: Source file VFS file name
; ----------- -------------
; D:\MY_VFS\INDEX.HTM \INDEX.HTM
; D:\MY_VFS\HTML\MAIN.HTM \HTML\MAIN.HTM
; D:\MY_VFS\HTML\PAGE2.HTM \HTML\PAGE2.HTM
; D:\MY_VFS\HTML\PAGE3.HTM \HTML\PAGE3.HTM
; D:\MY_VFS\IMAGE\MAIN.GIF \IMAGE\MAIN.GIF
; D:\MY_VFS\IMAGE\PICTURE.JPG \IMAGE\PICTURE.JPG
; Volume information
...BASEDIR \
; File information
...SRCPATH D:\MY_VFS
...OUTFILE D:\MY_VFS\APP_VFS.C
...COMPRESS c+
...IN INDEX.HTM
...IN HTML\MAIN.HTM
...IN HTML\PAGE2.HTM
...IN HTML\PAGE3.HTM
...COMPRESS c-
...IN IMAGE\MAIN.GIF
...IN IMAGE\PICTURE.JPG
Figure 7.2-1 VFS Definition File Sample 1
The directives are almost self explanatory. Directive ...BASEDIR defines the VFS
volume base as
\. Hence all VFS file names will begin with \. The ...OUTFILE
directive indicates that the Virtual File System is to be generated in C source file
APP_VFS.C in directory D:\MY_VFS on the user's development system.
Directive ...SRCPATH indicates that the source files from which the Virtual File System
is to be constructed all reside in directory D:\MY_VFS on the user's development system.
The
...COMPRESS and ...IN directives indicate that the Virtual File System consists of
four compressed text files and two uncompressed binary files.
Note that the hierarchy of files in the Virtual File System base directory \ exactly
matches that of the source files in directory D:\MY_VFS on the user's development system.