Table of Contents

Search

  1. Preface
  2. Informatica Managed File Transfer Welcome Overview
  3. Dashboard
  4. Resources
  5. Workflows
  6. Task Reference
  7. Services Overview
  8. Users
  9. Logs and Reports
  10. Encryption
  11. System
  12. Appendix
  13. Glossary Terms

Local Files

Local Files

The Local File variable specifies the absolute path and file name of a single file (for example, C:\mydir\myfile.txt on a Windows system, and /mydir/myfile on a UNIX system). The Local File variable is created by a Task that outputs a single file path (for example, Write CSV or Merge File), or Tasks that output multiple Local Files as part of a File List.
Each Local File variable contains the following attributes:
Attribute Name
Description
name
The name of the file, including the extension if one exists. If the Local File's path is /orders/company/20150304.txt, then the value of this attribute would be 20150304.txt
exists
This returns a true or false value on whether the file exists.
extension
The extension of the file if one exists. If the Local File variable is a directory, then the value of this attribute will be an empty string. If the Local File variable is a data file and the file has an extension, the extension will be returned. If the file does not have any extension, an empty string is returned.
lastModifiedDate
The last modified date and time of the file in ISO format, yyyy-MM-dd HH:mm:ss.SSS. Refer to the date and time format symbols for more information.
lastModifiedMillis
The last modification date and time of the file in milliseconds since the Unix timestamp (January 1, 1970).
size
The size of the file in bytes, which is a whole number.
parentFile
The path or folder location containing the file. For example, C:\temp\ or /tmp/. The path and path separators are dependent on the host operating system.
path
The absolute path of the file. For example, C:\temp\myfile.txt or /documents/myfile.txt. The path and path separators are dependent on the host operating system.
nameWithoutExtension
The name of the file excluding the extension.
All attribute names are case sensitive.

0 COMMENTS

We’d like to hear from you!