IFileSystemItem Interface
On this page:
Description
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 read/write, IFileSystemItem
Provides the attributes (FILE_ATTRIBUTE_*) for the file or folder.
IDL |
[propget] HRESULT Attributes([out, retval] unsigned long* pValue)
|
---|---|
.NET | UInt32 Attributes[get, set] |
Basename read-only, IFileSystemItem
Provides the name of the file or folder, without any path prefix.
IDL |
[propget] HRESULT Basename([out, retval] BSTR* pValue)
|
---|---|
.NET | String Basename[get] |
FullPath read-only, IFileSystemItem
Provides the fully qualified path to the file or folder within the plugin’s file system.
IDL |
[propget] HRESULT FullPath([out, retval] BSTR* pValue)
|
---|---|
.NET | String FullPath[get] |
Location read-only, IFileSystemItem
Provides the path to the file or folder. This should not include any trailing path separator characters.
IDL |
[propget] HRESULT Location([out, retval] BSTR* pValue)
|
---|---|
.NET | String Location[get] |
ModificationTime read-only, IFileSystemItem
Provides the time of the last modification to the file or folder.
IDL |
[propget] HRESULT ModificationTime([out, retval] FILETIME* pValue)
|
---|---|
.NET | FILETIME ModificationTime[get] |
Methods
Delete IFileSystemItem
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.
IDL |
HRESULT Delete(
|
---|---|
.NET | void Delete( |
bRecursive
IfTrue
, 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.