This extension contains functions for interacting with a file system Related Links: Extension Overview, DekiScript Overview, Extension Demos.
Assembly: mindtouch.deki.services
SID: http://services.mindtouch.com/deki/draft/2008/03/filesystem
This service requires Deki Wiki 1.9.1 or later.
To enable this extension, follow these steps:
Before
the FileSystem service can be used, it must be configured.
| Config Key | Description |
| folder | Specifies the file system folder (examples: z:\, \\myshare\drive ) |
If you need to configure multiple file systems for the same wiki, register
this extension once for each file system. Use the following preference to
specify a unique namespace value for each registration. Invoke the
service using this value instead of filesystem. For example, if you set
namespace=filesystem1, you would invoke the service with filesystem1.tree("...")
instead of filesystem.tree("...").
Functions:
Displays a browsable file system tree.
Parameters:
| Name | Type | Description |
| folder | str | The top directory |
| topDirectoryOnly | bool? | Optional. Specifies whether to include all directories or only the top directory (default: false) |
| pattern | str | Optional. Search pattern (default: nil) |
Samples: