FileSystem.CreateLocalFileSystem
FileSystem.CreateLocalFileSystem method
Initialize a new FileSystem
that only access local directory. All file read/write on this FileSystem instance will be mapped to specified directory.
public static FileSystem CreateLocalFileSystem(string directory)
Parameter | Type | Description |
---|---|---|
directory | String | The directory in your physical file system as the virtual root directory. |
Examples
The following code shows how to import file, and provide dependent files in a given directory
var inputFile = "input.fbx";
var format = FileFormat.Detect(inputFile);
//create a load options instance and specify a local file system
var opt = format.CreateLoadOptions();
opt.FileSystem = FileSystem.CreateLocalFileSystem("textures/");
//load the file
var scene = Scene.FromFile(inputFile, opt);
See Also
- class FileSystem
- namespace Aspose.ThreeD.Utilities
- assembly Aspose.3D