The File System Provider namespace automates common file system maintenance tasks involving files, directories, and shares. These tasks include moving, copying, and deleting files.
The File System Provider namespace implements the following procedures.
Procedure | Description |
---|---|
CopyDirectory | Copies all files from a source directory to a destination directory. The recursive option includes subdirectories in the copy, and the replace option overwrites existing files. |
CopyFile | Copies file from a source directory to a destination directory. Contains an option to set security and attributes for the copied files, as well as an option to overwrite copied files. |
CreateDirectory | Creates a new directory with the specified properties. |
CreateShare | Creates a network share with the specified MaxUser and Comment attributes. |
DeleteDirectory | Deletes the specified directory and any subdirectories and files. |
DeleteFile | Deletes the specified file. |
DeleteShare | Deletes the specified network share. |
GetDirectoryAttributes | Returns file system properties and Active Directory security attributes for the specified directory. |
GetFileAttributes | Returns file system properties and Active Directory security attributes for the specified file. |
GetShareProperties | Returns file system properties and Active Directory security attributes for the specified share. |
ListDirectory | Returns a list of the files in the specified directory, optionally with their file system properties and Active Directory attributes. |
MoveDirectory | Moves the specified directory from one location to another. |
MoveFile | Moves a file from a source to a destination directory. |
RenameDirectory | Renames the specified directory. |
RenameFile | Renames the specified file. |
SetDirectoryAttributes | Sets file system properties and Active Directory security attributes for the specified directory. |
SetFileAttributes | Sets file system properties and Active Directory security attributes for the specified file. |
SetShareProperties | Sets file system properties and Active Directory security attributes for the specified share. |
The Microsoft Provisioning Framework Software Development Kit (SDK) contains additional resources to help you implement the File System Provider namespace. For more information on the SDK and how to use it, see Microsoft Provisioning Framework SDK.