~cszikszoy/do-plugins/pastebin

« back to all changes in this revision

Viewing changes to File/src/FileItemSource.cs

  • Committer: David Siegel
  • Date: 2008-11-14 18:59:50 UTC
  • mfrom: (264.1.3 do-plugins)
  • Revision ID: david@david-desktop-20081114185950-tyvcga7oowbrkf9s
Merge.

Show diffs side-by-side

added added

removed removed

Lines of Context:
193
193
                
194
194
                public ICollection<IItem> ChildrenOfItem (IItem item)
195
195
                {
196
 
                        IFileItem fi;
 
196
                        IFileItem fi = null;
197
197
                        List<IItem> children;
198
198
                        
199
199
                        if (item is ITextItem) {
200
200
                                string path = (item as ITextItem).Text;
 
201
                                if (string.IsNullOrEmpty (path)) return null;
201
202
                                path = path.Replace ("~", Do.Paths.UserHome);
202
203
                                if (!Directory.Exists (path)) return null;
203
204
                                fi = new FileItem (path);