Skip to content

Commit 3f8f440

Browse files
committed
Update examples VFS Python command
1 parent 7fa3ef1 commit 3f8f440

5 files changed

Lines changed: 5 additions & 5 deletions

File tree

examples/C++/virtual_file_system/main.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main() {
1818
// VSF (Virtual File System) C++ Example
1919
//
2020
// 1. Run Python script to generate header file of a folder
21-
// python vfs.py "/path/to/folder" "vfs.h"
21+
// python vfs.py "/path/to/folder" "vfs.h" "index.html"
2222
//
2323
// 2. Include header file in your C++ project
2424
// #include "vfs.h"

examples/C/react/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ A simple Python script `vfs.py` is used to generate `vfs.h` to embed the whole r
1414

1515
1. Run `npx create-react-app my-react-app` to create a React app using NPM
1616
2. Add `<script src="webui.js"></script>` into `public/index.html` to connect UI with the backend
17-
3. Run `python vfs.py "./my-react-app/build" "vfs.h"` to embed the build folder
17+
3. Run `python vfs.py "./my-react-app/build" "vfs.h" "index.html"` to embed the build folder
1818
4. Now, use any C compiler to compile `main.c` into a portable executable program
1919

2020
### Other backend languages examples:

examples/C/react/build_react.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ cd ..
1111
echo.
1212
echo * Embedding React's build files into 'vfs.h'
1313

14-
python vfs.py "./webui-react-example/build" "vfs.h"
14+
python vfs.py "./webui-react-example/build" "vfs.h" "index.html"
1515

1616
echo.
1717
echo * Compiling 'main.c' into 'main.exe' using Microsoft Visual Studio...

examples/C/react/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int main() {
3030
// VSF (Virtual File System) Example
3131
//
3232
// 1. Run Python script to generate header file of a folder
33-
// python vfs.py "/path/to/folder" "vfs.h"
33+
// python vfs.py "/path/to/folder" "vfs.h" "index.html"
3434
//
3535
// 2. Include header file in your C project
3636
// #include "vfs.h"

examples/C/virtual_file_system/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ int main() {
1818
// VSF (Virtual File System) Example
1919
//
2020
// 1. Run Python script to generate header file of a folder
21-
// python vfs.py "/path/to/folder" "vfs.h"
21+
// python vfs.py "/path/to/folder" "vfs.h" "index.html"
2222
//
2323
// 2. Include header file in your C project
2424
// #include "vfs.h"

0 commit comments

Comments
 (0)