[horde] Re: listFolders function for vfs file backend

Liam Hoekenga liamr at umich.edu
Wed Mar 5 09:12:33 PST 2003


The following change should be made to make things more portable.  I 
hadn't realized there was a DIRECTORY_SEPARATOR constant...

Liam

Index: file.php
===================================================================
RCS file: /repository/horde/lib/VFS/file.php,v
retrieving revision 1.37
diff -U2 -r1.37 file.php
--- file.php    5 Mar 2003 03:33:12 -0000       1.37
+++ file.php    5 Mar 2003 14:11:03 -0000
@@ -422,5 +422,5 @@

          foreach ($folderList as $files) {
-            $folder['val'] = $path . '/' . $files['name'];
+            $folder['val'] = $path . DIRECTORY_SEPARATOR . 
$files['name'];
              $folder['abbrev'] = $files['name'];
              $folder['label'] = $folder['val'];

On Tuesday, March 4, 2003, at 09:26 PM, Liam Hoekenga wrote:

> Borrowed heavily from the FTP backend.... it seems to work ok - eg the 
> "move / copy to" folder list in Gollem works now when using the VFS 
> "file" driver:
>
>     http://www.umich.edu/~liamr/horde/vfs-file-listFolders.diff
>
> I've not put it through a lot of testing.
>
> Liam
>



More information about the horde mailing list