Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
06/23/14 17:01:02 (10 years ago)
Author:
mkommend
Message:

#2201: Overloaded ToString in all path types and fixed exists method.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/sources/HeuristicLab.Data.Views/3.3/Path Views/TextFileView.cs

    r9850 r11034  
    6868      if (Content != null && Content.Exists()) {
    6969        fileSystemWatcher.Filter = Path.GetFileName(Content.Value);
    70         fileSystemWatcher.Path = Path.GetDirectoryName(Content.Value);
     70        var path = Path.GetDirectoryName(Content.Value);
     71        if (string.IsNullOrEmpty(path)) path = Environment.CurrentDirectory;
     72        fileSystemWatcher.Path = path;
    7173      }
    7274      fileSystemWatcher.EnableRaisingEvents = Content != null && File.Exists(Content.Value) && Visible;
Note: See TracChangeset for help on using the changeset viewer.