public static bool IsInTrash(GenericContent n) { //currently this is a simple path check, but //in the future, when local trash bins may exist, //it will be more complicated return n != null && (n.Path + "/").StartsWith(TrashBinPath + "/"); }