[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Phpgroupware-developers] How to delete with VFS?
From: |
Dave Hall |
Subject: |
Re: [Phpgroupware-developers] How to delete with VFS? |
Date: |
Wed, 12 Nov 2003 08:17:11 +1100 |
"Don Graver (dgraver)" <address@hidden> wrote:
> I've figured out how to add files with the VFS api, but now I
> don't know how to call the delete or rm function to remove the
> files. What do I need to send the function...it seems to want the
> path, but is that the relative path, the absolute path?
The path can be either. Generally you use relatives for files in the
vfs and absolutes for those outside the vfs.
I haven't been awake too long, and working from memory but here goes
vfs::rm('string' => 'relative/path/to/file',
'relatives' => RELATIVE_ROOT, //defined in the top of vfs_shared
);
Cheers
Dave
>
> Basically I have the following array (don't mind the dashes):
> Array: -43
>
> # [app] -file-
> # [id] -dell.txt-
> # [app2] -calendar-
> # [id2] -6-
> # [remark] --
> # [owner] -6-
> # [link_id] --43-
> # [lastmod] -1068505200-
> # [size] -394-
> # [type] -text/plain-
>
> How do I delete this file? Thanks for the help. I'm probably
> missing something easy, so please enlighten me.
>
> DG
>
_______________________________________________
Phpgroupware-developers mailing list
address@hidden
http://mail.gnu.org/mailman/listinfo/phpgroupware-developers
dave.hall.vcf
Description: Card for <dave.hall@mbox.com.au>