IFileSystemItemEditor.CreateDirectory(FileSystemCreateDirectoryOptions) Method
Creates a directory.
Namespace: DevExtreme.AspNet.Mvc.FileManagement
Assembly: DevExtreme.AspNet.Core.dll
Declaration
void CreateDirectory(
FileSystemCreateDirectoryOptions options
)
Parameters
Name | Type | Description |
---|---|---|
options | FileSystemCreateDirectoryOptions | Options related to the operation. |
Remarks
The following example illustrates how to overwrite the CreateDirectory method.
Refer to the Binding to Entity Framework ORM online demo to get the whole example code.
IFileSystemItemEditor interface:
public void CreateDirectory(FileSystemCreateDirectoryOptions options) {
var parentDirectory = options.ParentDirectory;
var directory = new FileItem {
Name = options.DirectoryName,
Modified = DateTime.Now,
Created = DateTime.Now,
IsDirectory = true,
ParentId = ParseKey(parentDirectory.Key),
ModifiedById = GuestPersonId
};
// ...
}
See Also