コード例 #1
0
 protected override Value <PathCollection> ConvertTo(ConverterData <string> input)
 {
     if (!input.ActualValue.NullOrEmpty())
     {
         var path   = StoragePath.GetLastExtension(input.ActualValue).NullOrEmpty() ? input.ActualValue : Path.GetDirectoryName(input.ActualValue);
         var result = new PathCollection(new Filter(ItemType.File));
         result.Refresh(path);
         return(result);
     }
     return(Nothing.Do);
 }