Hello,
Lloyd,
1) Function AddDirectory (CreateFolder) returns the IDataFolder object. If you wish to add files/folders into added (created) directory you should call the AddDirectory (CreateFolder) method on this IDataFolder object.
' Create new root folder
dim newFolder as IDataFolder
set newFolder = m_dataBurner.CreateFolder("NewStuff")
' Append sub items ...
newFolder.CreateFolder("NewStuff2")
newFolder.AddDirectory("NewStuff2")
etc...
2) If you wish to add a folder to the folder which is present somewhere in the StarBurnX tree you should find the IDataFolder object which is linked with existing folder. The IDataFolder interface provides the method GetFileObject.
Dim parentFolder As IDataFolder
Dim objSelectedItem As IDataFile
' Get a parent folder for a removed file
parentFolder = m_dataBurner.GetFileObject("\Folder1\Folder2\")
' Get a file object wich will be removed
objSelectedItem = dataBurner.GetFileObject("\Folder1\Folder2\File1.test")
Regards,
Dmitry Bortsov
Rocket Division Software
|