cvs: peardoc /en/packages/file archive-tar.xml
| From: | Vincent Blavet | Date: | Sun, 12 May 2002 15:32:57 +0000 |
| Subject: | cvs: peardoc /en/packages/file archive-tar.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3782@lists.php.net to get a copy of this message | ||
vblavet Sun May 12 11:32:57 2002 EDT
Modified files:
/peardoc/en/packages/file archive-tar.xml
Log:
* Correct the use of \ character
Index: peardoc/en/packages/file/archive-tar.xml
diff -u peardoc/en/packages/file/archive-tar.xml:1.11 peardoc/en/packages/file/archive-tar.xml:1.12
--- peardoc/en/packages/file/archive-tar.xml:1.11 Thu May 9 09:39:17 2002
+++ peardoc/en/packages/file/archive-tar.xml Sun May 12 11:32:57 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.11 $ -->
+<!-- $Revision: 1.12 $ -->
<refentry id="packages.file.archive-tar">
<refnamediv>
<refname>Archive_Tar</refname>
@@ -431,10 +431,10 @@
<programlisting role="php">
<![CDATA[
$tar_object = new Archive_Tar("tarname.tar");
-$v_list[0]="d:\dev\file.txt";
-$v_list[1]="d:\dev\data\";
-$v_list[2]="d:\log\file.log";
-$tar_object->addModify($v_list, "install/temp", "d:\dev");
+$v_list[0]="d:\\dev\\file.txt";
+$v_list[1]="d:\\dev\\data\\";
+$v_list[2]="d:\\log\\file.log";
+$tar_object->addModify($v_list, "install/temp", "d:\\dev");
// files are stored in the archive as :
// install/temp/file.txt
// install/temp/data
@@ -534,10 +534,10 @@
<![CDATA[
$tar_object = new Archive_Tar("tarname.tgz", true);
$tar_object->setErrorHandling(PEAR_ERROR_PRINT);
-$v_list[0]="c:\dev\file.txt";
-$v_list[1]="c:\dev\data\";
-$v_list[2]="c:\log\file.log";
-$tar_object->createModify($v_list, "install/temp", "c:\dev");
+$v_list[0]="c:\\dev\\file.txt";
+$v_list[1]="c:\\dev\\data\\";
+$v_list[2]="c:\\log\\file.log";
+$tar_object->createModify($v_list, "install/temp", "c:\\dev");
// files are stored in the archive as :
// install/temp/file.txt
// install/temp/data
@@ -645,17 +645,17 @@
// readme.txt
$tar_object = new Archive_Tar("tarname.tar");
-$tar_object->extractModify("d:\install\temp", "dev");
+$tar_object->extractModify("d:\\install\\temp", "dev");
// Files will be extracted there :
-// d:\install\temp\data\file.txt
-// d:\install\temp\data\log.txt
-// d:\install\temp\readme.txt
+// d:\\install\\temp\\data\\file.txt
+// d:\\install\\temp\\data\\log.txt
+// d:\\install\\temp\\readme.txt
]]>
</programlisting>
</example>
<para>
- Under a windows system, the windows path format 'd:\path\dir' can be used
+ Under a windows system, the windows path format 'd:\\path\\dir' can be used
in the $add_dir parameter. It can never be used in the $remove_dir parameter
which must match the stored path inside the archive.
</para>