Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added toc excerpt to use in summary page

The Filesystem adapter comes with operations to be used on the file itself.

Table of Contents
maxLevel1

Retrieving File Information

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

Multiexcerpt include
MultiExcerptNamestatus
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

You can use the size of a file to determine its end position for usage with the write operation.

Renaming a File

Using the rename operation of the Filesystem adapter, you can rename a file.

Multiexcerpt include
MultiExcerptNamerename
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

Related Error Codes

Find a list of all File System Adapter error codes on System Errors of the File System Adapter.

Error CodeDescription
FSASDM/26

Failed renaming <file name>.

Moving a File

Using the rename operation of the Filesystem adapter, you can move a file to another location simply by providing a new path with parameter newName.

Multiexcerpt include
MultiExcerptNamerename
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

Info

This only works inside the same filesystem. Trying to move files to mounted filesystems will result in a "cross-device-link" error.

Related Error Codes

Find a list of all File System Adapter error codes on System Errors of the File System Adapter.

Error CodeDescription
FSASDM/26

Failed renaming <file name>.

Making a Copy of a File

Using the copy operation of the Filesystem adapter, you can copy a file.

Multiexcerpt include
MultiExcerptNamecopy
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

copy supports copying huge files because it does not load the complete file into memory.

Removing a File

Using the remove operation of the Filesystem adapter, you can delete a file.

Multiexcerpt include
MultiExcerptNameremove
PageWithExcerptFilesystem
shouldDisplayInlineCommentsInIncludesfalse

The adapter call does not return any messages. If the specified file does not exist, no error will be reported.


Panel
titleOn this Page:


Multiexcerpt
MultiExcerptNametoc

Table of Contents