From 46788d1b5bb72f59cc931e54912c81666ce30f84 Mon Sep 17 00:00:00 2001 From: Jussi Pakkanen Date: Tue, 5 Nov 2019 20:07:21 +0200 Subject: Created the filesystem module. --- docs/markdown/snippets/fsmodule.md | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 docs/markdown/snippets/fsmodule.md (limited to 'docs/markdown/snippets') diff --git a/docs/markdown/snippets/fsmodule.md b/docs/markdown/snippets/fsmodule.md new file mode 100644 index 0000000..d668b18 --- /dev/null +++ b/docs/markdown/snippets/fsmodule.md @@ -0,0 +1,10 @@ +## A new module for filesystem operations + +The new `fs` module can be used to examine the contents of the current +file system. + +```meson +fs = import('fs') +assert(fs.exists('important_file'), + 'The important file is missing.') +``` -- cgit v1.1