aboutsummaryrefslogtreecommitdiff
path: root/docs/markdown/snippets
diff options
context:
space:
mode:
authorJussi Pakkanen <jpakkane@gmail.com>2019-11-05 20:07:21 +0200
committerJussi Pakkanen <jpakkane@gmail.com>2019-11-08 00:44:45 +0200
commit46788d1b5bb72f59cc931e54912c81666ce30f84 (patch)
treee3438d1a7f68a9a1518f672a167f57b514cd5679 /docs/markdown/snippets
parent48a719033ee6f1626a8878f66a43ee939dad4c62 (diff)
downloadmeson-46788d1b5bb72f59cc931e54912c81666ce30f84.zip
meson-46788d1b5bb72f59cc931e54912c81666ce30f84.tar.gz
meson-46788d1b5bb72f59cc931e54912c81666ce30f84.tar.bz2
Created the filesystem module.
Diffstat (limited to 'docs/markdown/snippets')
-rw-r--r--docs/markdown/snippets/fsmodule.md10
1 files changed, 10 insertions, 0 deletions
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.')
+```