VerifyFile.xml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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="VerifyFile">
  5. <title>VerifyFile</title>
  6. <para><emphasis role="bold">STD.File.VerifyFile<indexterm>
  7. <primary>STD.File.VerifyFile</primary>
  8. </indexterm><indexterm>
  9. <primary>File.VerifyFile</primary>
  10. </indexterm><indexterm>
  11. <primary>VerifyFile</primary>
  12. </indexterm>(</emphasis> <emphasis> file, usecrcs </emphasis> <emphasis
  13. role="bold">)</emphasis></para>
  14. <informaltable colsep="1" frame="all" rowsep="1">
  15. <tgroup cols="2">
  16. <colspec colwidth="80.50pt" />
  17. <colspec />
  18. <tbody>
  19. <row>
  20. <entry><emphasis>file</emphasis></entry>
  21. <entry>A null-terminated string containing the logical name of the
  22. file.</entry>
  23. </row>
  24. <row>
  25. <entry><emphasis>usecrcs</emphasis></entry>
  26. <entry>A boolean TRUE/FALSE flag indicating that, when TRUE,
  27. compares physical CRCs of all the parts on disk. This may be slow on
  28. large files.</entry>
  29. </row>
  30. <row>
  31. <entry>Return:<emphasis> </emphasis></entry>
  32. <entry>VerifyFile returns returns a VARSTRING value.</entry>
  33. </row>
  34. </tbody>
  35. </tgroup>
  36. </informaltable>
  37. <para>The <emphasis role="bold">VerifyFile </emphasis>function checks the
  38. system datastore (Dali) information for the <emphasis>file</emphasis>
  39. against the physical parts on disk and returns the following values:</para>
  40. <informaltable colsep="1" frame="all" rowsep="1">
  41. <tgroup cols="2">
  42. <colspec colwidth="160pt" />
  43. <colspec />
  44. <tbody>
  45. <row>
  46. <entry>OK</entry>
  47. <entry>The file parts match the datastore information</entry>
  48. </row>
  49. <row>
  50. <entry>Could not find file: <emphasis>filename</emphasis></entry>
  51. <entry>The logical <emphasis>filename</emphasis> was not
  52. found</entry>
  53. </row>
  54. <row>
  55. <entry>Could not find part file:
  56. <emphasis>partname</emphasis></entry>
  57. <entry>The <emphasis>partname</emphasis> was not found</entry>
  58. </row>
  59. <row>
  60. <entry>Modified time differs for:
  61. <emphasis>partname</emphasis></entry>
  62. <entry>The <emphasis>partname</emphasis> has a different
  63. timestamp</entry>
  64. </row>
  65. <row>
  66. <entry>File size differs for: <emphasis>partname</emphasis></entry>
  67. <entry>The <emphasis>partname</emphasis> has a file size</entry>
  68. </row>
  69. <row>
  70. <entry>File CRC differs for: <emphasis>partname</emphasis></entry>
  71. <entry>The <emphasis>partname</emphasis> has a different CRC</entry>
  72. </row>
  73. </tbody>
  74. </tgroup>
  75. </informaltable>
  76. <para>Example:</para>
  77. <programlisting format="linespecific">A := STD.File.VerifyFile('Fred1', TRUE);
  78. </programlisting>
  79. </sect1>