LogicalFileList.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  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><emphasis role="bold">LogicalFileList</emphasis></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></para>
  18. <informaltable colsep="0" frame="none" rowsep="0">
  19. <tgroup cols="2">
  20. <colspec colwidth="80.50pt" />
  21. <colspec />
  22. <tbody>
  23. <row>
  24. <entry><emphasis>pattern</emphasis></entry>
  25. <entry>Optional. A null-terminated string containing the mask of the
  26. files to list. If omitted,the default is '*' (all files).</entry>
  27. </row>
  28. <row>
  29. <entry><emphasis>includenormal</emphasis></entry>
  30. <entry>Optional. A boolean flag indicating whether to include
  31. “normal” files. If omitted, the default is TRUE.</entry>
  32. </row>
  33. <row>
  34. <entry><emphasis>includesuper</emphasis></entry>
  35. <entry>Optional. A boolean flag indicating whether to include
  36. SuperFiles. If omitted, the default is FALSE.</entry>
  37. </row>
  38. <row>
  39. <entry><emphasis>unknownszero</emphasis></entry>
  40. <entry>Optional. A boolean flag indicating to set file sizes that
  41. are unknown to zero (0) instead of minus-one (-1). If omitted, the
  42. default is FALSE.</entry>
  43. </row>
  44. <row>
  45. <entry>Return:<emphasis></emphasis></entry>
  46. <entry>LogicalFileList returns returns a dataset in the following
  47. format:</entry>
  48. </row>
  49. </tbody>
  50. </tgroup>
  51. </informaltable>
  52. <para><programlisting format="linespecific">EXPORT FsLogicalFileNameRecord := RECORD
  53. STRING name;
  54. END;
  55. EXPORT FsLogicalFileInfoRecord := RECORD(FsLogicalFileNameRecord)
  56. BOOLEAN superfile;
  57. UNSIGNED8 size;
  58. UNSIGNED8 rowcount;
  59. STRING19 modified;
  60. STRING owner;
  61. STRING cluster;
  62. END;
  63. </programlisting>The <emphasis role="bold">LogicalFileList </emphasis>function
  64. returns a list of the logical files in the environment files as a dataset in
  65. the format listed above.</para>
  66. <para>Example:</para>
  67. <programlisting format="linespecific">OUTPUT(STD.File.LogicalFileList());
  68. //returns all normal files
  69. OUTPUT(STD.File.LogicalFileList(,FALSE,TRUE));
  70. //returns all SuperFiles</programlisting>
  71. </sect1>