Command filesystem.listfiles

The command filesystem.listfiles is used to list the directory files by saving them in a file.

At this moment this command is not supported by Telium 2 terminals.

Parameters

  1. dir [string]
    Directory which is going to be checked, that can be I or F (Verifone).
  2. listfilename [string]
    Name of the file that will store the name and size of the files in the specified directory.
  3. variablereturn [integer]
    Variable that will store the return code, where:
    • 0: File list created
    • -1: Empty directory

Example


In the example above, a file called files.dat will be created, and this file will save the name and size of all files that are in the directory being analyzed, in this case the directory F.
As the command return is an integervariable, the command inttostring is used to convert the variable that will be displayed using the command display.