Exemple #1
0
    public static async Task StoreFileListAsync(Guid modelIdentifier,
                                                RecordingFileLoader fileRecorder)
    {
#if ENABLE_WINMD_SUPPORT
        var baseLoadPath      = fileRecorder.BaseDirectoryPath.ToLower().TrimEnd('\\');
        var base3dObjectsPath = KnownFolders.Objects3D.Path.ToLower().TrimEnd('\\');

        var relativePath = baseLoadPath.Substring(
            base3dObjectsPath.Length,
            baseLoadPath.Length - base3dObjectsPath.Length);

        var relativePaths = fileRecorder.RelativeLoadedFilePaths.Select(
            path => Path.Combine("\\", relativePath, path).Replace('\\', '/'));

        var file = await GetSubFolderFileAsync(
            GetFileListFileName(modelIdentifier), true);

        await FileIO.WriteLinesAsync(file, relativePaths);
#endif // ENABLE_WINMD_SUPPORT
    }
 public ImportedModelInfo(RecordingFileLoader fileLoader)
 {
     this.FileLoader = fileLoader;
 }