API:EPrints/VFS
Latest Source Code (3.4, 3.3) | Revision Log | Before editing this page please read Pod2Wiki
Contents
Directory Operations
vfs_chdir
$child = $vfs->vfs_chdir( ID )
Return the child directory called ID, or undef if it doesn't exist.
vfs_mkdir
$ok = $vfs->vfs_mkdir( ID )
Make a child directory called ID.
vfs_rmdir
$ok = $vfs->vfs_rmdir( ID )
Remove a child directory called ID.
Listings
vfs_list
$ok = $vfs->vfs_list(sub { ID })
Return a list of ids of objects we hold.
vfs_list_details
$ok = $vfs->vfs_list_details(sub { DETAIL })
Return a detailed list of our children and objects.
Object Operations
vfs_read
$ok = $vfs->vfs_read(ID, sub { BUFFER })
Reads the content stored at ID.
vfs_write
$ok = $vfs->vfs_write(ID, CONTENT_LENGTH, BUFFER = sub {})
Writes the content returned by sub{} to ID.
vfs_delete
$ok = $vfs->vfs_delete( ID )
Remove an object called ID.
vfs_size
$bytes = $vfs->vfs_size( ID )
Return the size in bytes of ID, or undef if it doesn't exist.