// For complete examples and data files, please go to https://github.com/groupdocs-viewer/GroupDocs.Viewer-for-.NET
// Create/initialize image handler
ViewerImageHandler imageHandler = new ViewerImageHandler(Utilities.GetConfigurations());
// Load file list for custom path
FileListOptions options = new FileListOptions(Path);
// Load file list sorted by Name and ordered Ascending for custom path
FileListOptions options1 = new FileListOptions(Path, FileListOptions.FileListSortBy.Name, FileListOptions.FileListOrderBy.Ascending);
// Load file list for ViewerConfig.StoragePath
FileListContainer container = imageHandler.GetFileList();
// Load file list for custom path
FileListContainer container1 = imageHandler.GetFileList(options);
foreach (var node in container.Files)
{
if (node.IsDirectory)
{
Console.WriteLine("Guid: {0} | Name: {1} | LastModificationDate: {2}",
node.Guid,
node.Name,
node.LastModificationDate);
}
else
Console.WriteLine("Guid: {0} | Name: {1} | Document type: {2} | File type: {3} | Extension: {4} | Size: {5} | LastModificationDate: {6}",
node.Guid,
node.Name,
node.DocumentType,
node.FileType,
node.Extension,
node.Size,
node.LastModificationDate);
}