[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [Phpgroupware-developers] How to delete with VFS?
From: |
Don Graver (dgraver) |
Subject: |
RE: [Phpgroupware-developers] How to delete with VFS? |
Date: |
Wed, 12 Nov 2003 10:51:54 -0000 |
OK...I got it figured out. Amazing what a night of sleep will do.
Anyways, I am using a lot of the functions from infolog (as suggested by
the group) that were created by ralf becker, and there is one called
"delete_attached"...so all I had to do was call that function and all
was good in the world. These functions are a big help in not having to
try and figure everything about VFS by yourself. I did take a closer
look at the function and it uses the following:
$this->vfs->delete('/path/to/file', array(RELATIVE_ROOT));
So you were right Dave :-)
And sorry about the HTML email, I had to use the Microsofts exchange
email program for the web last evening to send it out...hence why it got
sent twice and was in HTML format.
-- Don Graver
> -----Original Message-----
> From:
> address@hidden
> [mailto:address@hidden
> org] On Behalf Of Dave Hall
> Sent: Tuesday, November 11, 2003 10:17 PM
> To: address@hidden
> Subject: Re: [Phpgroupware-developers] How to delete with VFS?
>
>
> "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
> >
>