FileInformation

MacroModule
genre File
author MeVis Medical Solutions AG
package MeVisLab/Standard
definition FileHandling.def
see also MakeName
keywords Filename, read, write, path, permissions, size, basename, extension, directory

Purpose

The module FileInformation gives access to a lot of information about a physical file on disk such as type (file or directory), size (in bytes), creation date, file permissions, etc.

Windows

Default Panel

../../../Modules/Macros/FileHandling/mhelp/Images/Screenshots/FileInformation._default.png

Parameter Fields

Field Index

Basename: String Is Readable: Bool
Create Dir: Trigger Is Writable: Bool
Created: String Path: String
Directory: String Size (bytes): Integer
Exists: Bool Type: String
File Extension: String Update: Trigger
Filename: String  
Is Directory: Bool  

Visible Fields

Path

name: path, type: String

Sets and shows the path of the file.

Update

name: update, type: Trigger

If pressed, the file information are being updated.

Directory

name: dirname, type: String, deprecated name: dirName

Sets and shows the directory name.

Filename

name: filename, type: String, deprecated name: fileBaseName

Sets and shows the filename.

Basename

name: basename, type: String, deprecated name: baseName

Sets and shows the base name of the file.

File Extension

name: extension, type: String

Sets and shows the file ending.

Type

name: type, type: String, persistent: no

Shows the type of the file.

Size (bytes)

name: size, type: Integer, persistent: no

Shows the size of the file in bytes.

Created

name: createDate, type: String, persistent: no

Shows the creation date of the file.

Exists

name: exists, type: Bool, persistent: no

Shows whether the file exists.

Is Directory

name: isDirectory, type: Bool, persistent: no

Shows whether the file is a directory.

Is Readable

name: isReadable, type: Bool, persistent: no

Shows whether the file is readable.

Is Writable

name: isWritable, type: Bool, persistent: no

Shows whether the file is writable.

Create Dir

name: createDir, type: Trigger

If pressed, the specified directory is being created.