This interface provides access to properties and methods that are common to files and folders. Components that implement this interface will typically implement either IFile or IFolder as well.
Properties
Attributes
| IDL | [propget] HRESULT Attributes([out, retval] unsigned long* pValue) |
|---|---|
| .NET | UInt32 Attributes[get, set] |
| VB6 | Attributes As Long |
Provides the attributes (FILE_ATTRIBUTE_*) for the file or folder.
The property is read/write.
Basename
| IDL | [propget] HRESULT Basename([out, retval] BSTR* pValue) |
|---|---|
| .NET | String Basename[get] |
| VB6 | Basename As String |
Provides the name of the file or folder, without any path prefix.
The property is read-only.
FullPath
| IDL | [propget] HRESULT FullPath([out, retval] BSTR* pValue) |
|---|---|
| .NET | String FullPath[get] |
| VB6 | FullPath As String |
Provides the fully qualified path to the file or folder within the plugin’s file system.
The property is read-only.
Location
| IDL | [propget] HRESULT Location([out, retval] BSTR* pValue) |
|---|---|
| .NET | String Location[get] |
| VB6 | Location As String |
Provides the path to the file or folder. This should not include any trailing path separator characters.
The property is read-only.
ModificationTime
| IDL | [propget] HRESULT ModificationTime([out, retval] FILETIME* pValue) |
|---|---|
| .NET | FILETIME ModificationTime[get] |
| VB6 | ModificationTime As FILETIME |
Provides the time of the last modification to the file or folder.
The property is read-only.
Methods
Delete
| IDL | HRESULT Delete([in] VARIANT_BOOL bRecursive) |
|---|---|
| .NET | void Delete(Boolean bRecursive) |
| VB6 | Delete(bRecursive As Boolean) |
Deletes the file or folder. For folders, the bRecursive argument is used to control whether the folder should be removed if it contains files or folders.
Arguments
-
bRecursive
If
True, the folder represented by this interface should be removed along with its content. IfFalse, the folder should only be removed if it does not contain any files or folders.
