Added comment to explain how to fix known bug in FileSystemObjectModel.FromFiles() method

This commit is contained in:
Michael Becker 2014-07-08 10:36:42 -04:00
parent e2f46008c5
commit c777ffd31b

View File

@ -43,6 +43,12 @@ namespace UniversalEditor.ObjectModels.FileSystem
public static FileSystemObjectModel FromFiles(string[] fileNames)
{
// TODO: This doesn't work because GetAvailableObjectModel returns an
// ObjectModel but automatically closes the file after reading... deferred
// FileSystemObjectModels associated files need to remain open in order to
// read the file data. Consider using a Document-based approach which provides
// more control over closing files as needed?
FileSystemObjectModel fsom = new FileSystemObjectModel();
foreach (string fileName in fileNames)