return item;
}
- public string strip_parent (File child) {
- return root_dir.get_relative_path (child);
- }
-
/**
* Create a new root container.
*
* @parameter file, directory you want to expose
* @parameter full, show full path in title
*/
- public FolderContainer (MediaContainer parent, File file, bool full) {
+ public FolderContainer (MediaContainer parent, File file) {
string id = Checksum.compute_for_string (ChecksumType.MD5,
file.get_uri ());
base(id, parent, file.get_basename (), 0);
this.root_dir = file;
- if (!full && parent is FolderContainer) {
- this.title = ((FolderContainer) parent).strip_parent (root_dir);
- }
-
this.items = new ArrayList<MediaObject> ();
this.child_count = 0;
this.results = new ArrayList<AsyncResult> ();
foreach (var dir in dirs) {
var f = File.new_for_commandline_arg (dir);
if (f.query_exists (null)) {
- items.add (new FolderContainer (this, f, true));
+ items.add (new FolderContainer (this, f));
}
}