Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

find undeleted files

Thomas Richter July 23, 2012

I try to find undeleted directories named .settings:

select revisions 
from dir "/" 
where (is head and 
path like "**/.settings" and
path like "**/trunk/**") 
order by date  desc  
group by directory 
return path

But I find also deleted dirs ...

1 answer

0 votes
Sergey Svishchev
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 11, 2013

Add "not is deleted" clause, like this:

select revisions 
from dir "/"
where (is head and
path like "**/trunk/**/.settings" and
not is deleted) 
order by date desc 
group by directory 
return path, date, isDeleted

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events