Get filenames
Description
The Get File Names transform allows you to get information associated with file names on the file system. The retrieved file names are added as rows onto the stream.
The output fields for this transform are:
-
filename - the complete filename, including the path (/tmp/hop/somefile.txt)
-
short_filename - only the filename, without the path (somefile.txt)
-
path - only the path (/tmp/hop/)
-
type
-
exists
-
ishidden
-
isreadable
-
iswriteable
-
lastmodifiedtime
-
size
-
extension
-
uri
-
rooturi
File tab
This tab defines the location of the files you want to retrieve filenames for. For more information about specifying file locations, see section "Selecting file using Regular Expressions" on the Text File Input transform.
Example: You have a static directory of c:\temp where you expect files with an extension of .dat to be placed. Under file/directory you would specify c:\temp and under Wildcard you would have a RegEx with something like .*\.dat$