From 2735b3eeb3403ba813aac56ed6f10be536839ff6 Mon Sep 17 00:00:00 2001 From: Derek Jones Date: Tue, 11 May 2010 08:58:21 -0500 Subject: fixed whitespace, massaged Zip read_dir() docs --- user_guide/libraries/zip.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'user_guide/libraries/zip.html') diff --git a/user_guide/libraries/zip.html b/user_guide/libraries/zip.html index 844023b9e..d57dd48ac 100644 --- a/user_guide/libraries/zip.html +++ b/user_guide/libraries/zip.html @@ -189,7 +189,7 @@ $this->zip->read_dir($path); $this->zip->download('my_backup.zip'); -

By default the Zip archive will place all directories listed in the first parameter inside the zip. If you only want the end folder to be in the zip +

By default the Zip archive will place all directories listed in the first parameter inside the zip. If you want the tree preceding the target folder to be ignored you can pass FALSE (boolean) in the second parameter. Example:

@@ -197,7 +197,7 @@ $path = '/path/to/your/directory/';

$this->zip->read_dir($path, FALSE);
-

This will create a ZIP with the folder "directory" inside, then all sub-folders stored correctly inside that.

+

This will create a ZIP with the folder "directory" inside, then all sub-folders stored correctly inside that, but will not include the folders /path/to/your.

-- cgit v1.2.3-24-g4f1b