BExplorer.Shell.ShellView.CreateNewFolder C# (CSharp) Method

CreateNewFolder() public method

Creates a new folder in the current directory and assigns a default name if none is specified. Returns the name
public CreateNewFolder ( String name ) : String
name String The name of the new folder
return String
    public String CreateNewFolder(String name) {
      if (String.IsNullOrEmpty(name)) {
        name = User32.LoadResourceString(Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.System), "shell32.dll"), 30396, "New Folder");
      }

      var fo = new IIFileOperation(this.Handle, false);
      fo.NewItem(this.CurrentFolder, name, FileAttributes.Directory | FileAttributes.Normal);
      fo.PerformOperations();

      return name;
    }
ShellView