File Info
Information about a file
Processing
For each input row, the step retrieves basic file attributes for a given path.
Settings
Name |
Type |
Description |
Filesystem |
dict |
The filesystem to use.
If the filesystem is nil , the local filesystem is used.
Evaluated for each input row
|
Path |
string |
The path to check.
Relative paths are interpreted as relative to the flow file.
Evaluated for each input row
|
Results
Name |
Type |
Description |
file_info |
dict |
A dict with attributes as read from the file system.
The following attributes are always provided:
Key |
Type |
Value |
name |
string |
file name |
path |
string |
absolute path |
parent |
string |
absolute path to parent directory, can be nil for fs root |
size |
long |
size of file in bytes, can be nil if path is not a file |
is_file |
boolean |
true if path points to a regular file, false otherwise |
is_dir |
boolean |
true if path points to a directory, false otherwise |
is_symlink |
boolean |
true if path is a symbolic link |
is_other |
boolean |
true if path is not a file or directory (could be a pipe, socket, etc.) |
mtime |
datetime |
time of last modification, can be nil if file system does not track mtime |
ctime |
datetime |
time of creation, can be nil if file system does not track ctime |
Additional attributes might be present if provided by the underlying filesystem.
|