LogicalFileList.xml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd">
  4. <sect1 id="LogicalFileList">
  5. <title>LogicalFileList</title>
  6. <para><emphasis role="bold">STD.File.LogicalFileList<indexterm>
  7. <primary>STD.File.LogicalFileList</primary>
  8. </indexterm><indexterm>
  9. <primary>File.LogicalFileList</primary>
  10. </indexterm><indexterm>
  11. <primary>LogicalFileList</primary>
  12. </indexterm>(</emphasis> <emphasis> </emphasis> <emphasis role="bold">[
  13. </emphasis> <emphasis>pattern </emphasis> <emphasis role="bold">] [,
  14. </emphasis> <emphasis>includenormal</emphasis> <emphasis role="bold"> ] [,
  15. </emphasis> <emphasis>includesuper</emphasis> <emphasis role="bold">
  16. ]</emphasis> <emphasis role="bold"> [, </emphasis> <emphasis>unknownszero
  17. </emphasis> <emphasis role="bold">] </emphasis><emphasis role="bold"> [, </emphasis> <emphasis>foreigndali
  18. </emphasis> <emphasis role="bold">] )</emphasis></para>
  19. <informaltable colsep="1" frame="all" rowsep="1">
  20. <tgroup cols="2">
  21. <colspec colwidth="80.50pt" />
  22. <colspec />
  23. <tbody>
  24. <row>
  25. <entry><emphasis>pattern</emphasis></entry>
  26. <entry>Optional. A null-terminated string containing the mask of the
  27. files to list. If omitted,the default is '*' (all files).</entry>
  28. </row>
  29. <row>
  30. <entry><emphasis>includenormal</emphasis></entry>
  31. <entry>Optional. A boolean flag indicating whether to include
  32. “normal” files. If omitted, the default is TRUE.</entry>
  33. </row>
  34. <row>
  35. <entry><emphasis>includesuper</emphasis></entry>
  36. <entry>Optional. A boolean flag indicating whether to include
  37. SuperFiles. If omitted, the default is FALSE.</entry>
  38. </row>
  39. <row>
  40. <entry><emphasis>unknownszero</emphasis></entry>
  41. <entry>Optional. A boolean flag indicating to set file sizes that
  42. are unknown to zero (0) instead of minus-one (-1). If omitted, the
  43. default is FALSE.</entry>
  44. </row>
  45. <row>
  46. <entry><emphasis>foreigndali</emphasis></entry>
  47. <entry>Optional. The IP address of the foreign dali used to resolve the file.
  48. If blank then the file is resolved locally. If omitted, the
  49. default is blank.</entry>
  50. </row>
  51. <row>
  52. <entry>Return:<emphasis></emphasis></entry>
  53. <entry>LogicalFileList returns returns a dataset in the following
  54. format:</entry>
  55. </row>
  56. </tbody>
  57. </tgroup>
  58. </informaltable>
  59. <para><programlisting format="linespecific">EXPORT FsLogicalFileNameRecord := RECORD
  60. STRING name;
  61. END;
  62. EXPORT FsLogicalFileInfoRecord := RECORD(FsLogicalFileNameRecord)
  63. BOOLEAN superfile;
  64. UNSIGNED8 size;
  65. UNSIGNED8 rowcount;
  66. STRING19 modified;
  67. STRING owner;
  68. STRING cluster;
  69. END;
  70. </programlisting>The <emphasis role="bold">LogicalFileList </emphasis>function
  71. returns a list of the logical files in the environment files as a dataset in
  72. the format listed above.</para>
  73. <para>Example:</para>
  74. <programlisting format="linespecific">OUTPUT(STD.File.LogicalFileList());
  75. //returns all normal files
  76. OUTPUT(STD.File.LogicalFileList(,FALSE,TRUE));
  77. //returns all SuperFiles</programlisting>
  78. </sect1>