cvs: peardoc /fr/packages/file archive-tar.xml
| From: | Vincent Blavet | Date: | Sun, 12 May 2002 15:32:43 +0000 |
| Subject: | cvs: peardoc /fr/packages/file archive-tar.xml | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-3781@lists.php.net to get a copy of this message | ||
vblavet Sun May 12 11:32:43 2002 EDT
Modified files:
/peardoc/fr/packages/file archive-tar.xml
Log:
* Correct the use of \ character
Index: peardoc/fr/packages/file/archive-tar.xml
diff -u peardoc/fr/packages/file/archive-tar.xml:1.2 peardoc/fr/packages/file/archive-tar.xml:1.3
--- peardoc/fr/packages/file/archive-tar.xml:1.2 Thu May 9 09:39:01 2002
+++ peardoc/fr/packages/file/archive-tar.xml Sun May 12 11:32:43 2002
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1" ?>
-<!-- $Revision: 1.2 $ -->
+<!-- $Revision: 1.3 $ -->
<refentry id="packages.file.archive-tar">
<refnamediv>
<refname>Archive_Tar</refname>
@@ -432,10 +432,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
@@ -446,7 +446,7 @@
</programlisting>
</example>
<para>
- Sous un OS windows, les chemins de dossier au format windows ('c:\path\dir')
+ Sous un OS windows, les chemins de dossier au format windows ('c:\\path\\dir')
sont supportés. Cependant si vous utilisez le format wondows pour les fichiers
vous devez utiliser aussi ce format pour le paramètre $remove_dir.
Le paramètre $add_dir peut utiliser les deux formats.
@@ -535,10 +535,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
@@ -639,17 +639,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>
- Sous un OS windows, le chemin de dossier au format windows ('d:\path\dir')
+ Sous un OS windows, le chemin de dossier au format windows ('d:\\path\\dir')
peut être utilisé pour le paramètre $add_dir. Il ne doit pas être utilsé
pour le paramètre $remove_dir qui doit correspondre au format mémorisé dans
l'archive.