Versions Compared

Key

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

This page explains the Filesystem Adapter in Bridge context. If you were looking for the same information regarding the PAS Designer, refer to Filesystem Adapter in the Designer guide.

Hint_designerPageDESIGNER:Filesystem AdapterTopicFilesystem Adapter

Parameters of Action "rename"

Multiexcerpt include
MultiExcerptNamerename
PageWithExcerptFile System

Info
iconfalse

Multiexcerpt include
SpaceWithExcerptINTERNAL
MultiExcerptNamehint_backslash_in_path
nopaneltrue
PageWithExcerptINTERNAL:_bridge_excerpts

Defining a "rename" Action

To rename a file with the file system adapter, you need to define a rename action on an action having the stereotype <<FileSystemAdapter>>. You can do this manually or with the help of the xUML Action Wizard (see context menu of the action node).

Figure: Renaming a File

The new file name newName is of the base type String and has to be provided dynamically. We recommend to provide a fully qualified file name (including the path).

The path and file name of the file you want to rename are defined in the component diagram.

Multiexcerpt include
MultiExcerptNamefile_system_alias
nopaneltrue
PageWithExcerptReading Files

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 Files using the "rename" Action

You can use the rename action to easily move around files, simply by providing a new path with parameter newName.

Info
iconfalse

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>.

Panel
titleOn this Page:
Table of Contents
OtpFloatingfalse