Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Published by Scroll Versions from space WDESIGNER and version 24.0

With the Filesystem adapter, you can write, read, remove directories and retrieve status information about a directory.

Table of Contents
maxLevel1

Directory Alias

Regarding directories, the Filesystem adapter can be configured with an directory alias. The Directory alias specifies a path to a directory and the default encoding for the contained files. You can use it for static directory access or to define a base path and encoding for file and directory handling (see also Static and Dynamic Filesystem Access below).

Creating a Directory

Using the createDirectory operation of the Filesystem adapter, you can create a new directory to the filesystem.

Multiexcerpt include
MultiExcerptNamecreateDirectory
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

The adapter call does not return any messages. If the directory already exists, no error will be reported. Neither the existing directory nor data within that directory will be affected in this case.

Removing a Directory

Removing an Empty Directory

Using the remove operation of the Filesystem adapter on a directory, you can delete an empty directory from the filesystem.

Multiexcerpt include
MultiExcerptNameremove_directory
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

You can only remove empty directories using remove. In case the directory is not empty, use removeRecursively (see below).

Removing a Directory and all its Contents

Using the removeRecursively operation of the Filesystem adapter, you can delete a directory and all its contents from the filesystem.

Multiexcerpt include
MultiExcerptNameremoveRecursively_directory
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

Reading the Contents of a Directory

Using the readDirectory operation of the Filesystem adapter, you can get a list of the contents of a directory in the filesystem.

Multiexcerpt include
MultiExcerptNamereadDirectory
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

Retrieving Directory Information

Using the status operation of the Filesystem adapter on a directory, you can get some general information on the directory.

Multiexcerpt include
MultiExcerptNamestatus
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

Static and Dynamic Filesystem Access

Multiexcerpt include
MultiExcerptNamestatic_dynamic_access
PageWithExcerptHandling of Files
shouldDisplayInlineCommentsInIncludesfalse

Panel
titleOn this Page:
Table of Contents
OtpFloatingfalse