public List<SyncItem> GetAllFoldersWithCmisId(string id)
{
Dictionary<string, object> parameters = new Dictionary<string, object>();
parameters.Add("id", id);
var results = ExecuteMultiRecordSQL("SELECT path , localPath FROM folders WHERE id=@id ORDER BY serverSideModificationDate DESC", parameters);
return results.Select(p =>
{
var localPath = p["localPath"] as string;
var remotePath = p["path"] as string;
return SyncItemFactory.CreateFromPaths(localPathPrefix, localPath, remotePathPrefix, remotePath, true);
}).ToList();
}