VirtualBox

Opened 14 years ago

Closed 13 years ago

#7148 closed enhancement (fixed)

IVFSExplorer::entryList needs to return file/dir permission and file attributes -> Fixed in SVN

Reported by: Joe Owned by:
Component: webservices Version: VirtualBox 3.2.4
Keywords: Cc:
Guest type: Linux Host type: Linux

Description

The IVFSExplorer::entryList method currently returns an array of arrays.

Array (Array (list of files), Array (list of file types))

The first array is the name of the entry. The second array contains a corresponding entry that defines the entry type (VFSFileType).

To properly present a remote file/directory browser, the following attributes are required:

-RWX - Read/Write/eXecute permission for the user

-Size - Size of the file as reported by the filesystem

This will allow a remote user to only be presented with files they can access. Additionally, including the size of the file provides a way for the user to confirm the file they are viewing matches the size they expected.

This request is not for a full-blown remote file browser, but rather a modification to the existing list of data that is returned to include the permission of the file and it's size.

Since the result is already an array of arrays, the impact could be negligible if the additional information is provided in arrays. E.g:

Array (Array (list of files), Array (list of file types), Array (list of permissions), Array (list of sizes))

Change History (2)

comment:1 by Christian Pötzsch, 13 years ago

Summary: IVFSExplorer::entryList needs to return file/dir permission and file attributesIVFSExplorer::entryList needs to return file/dir permission and file attributes -> Fixed in SVN

Fixed in the next major release.

comment:2 by Frank Mehnert, 13 years ago

Resolution: fixed
Status: newclosed

Fix in VBox 4.0.

Note: See TracTickets for help on using tickets.

© 2023 Oracle
ContactPrivacy policyTerms of Use