I wrote a java program that uses SharePoint's Lists web service.
Right now, this is my CAML Query :
<Query>
<Where>
<Contains>
<FieldRef Name='FileDirRef'/><Value Type='Lookup'>SubFolder1</Value>
</Contains>
</Where>
</Query>
and this is my CAML Query Options :
<QueryOptions>
<ViewAttributes Scope='RecursiveAll' />
<OptimizeFor>FolderUrls</OptimizeFor>
</QueryOptions>
This is what my root folder looks like :
And my program returns all File3.txt, SubFolder2 and File4.txt
What should I do in order to only get the contents of SubFolder1 : File3.txt AND SubFolder2 ?
Also, Is there a way to place myself on a folder other than root ?

query.FolderServerRelativeUrlchk http://sharepoint.stackexchange.com/questions/59216/get-all-files-from-sub-folder-of-a-certain-content-type and http://answers.flyppdevportal.com/categories/sharepoint2010/sharepoint2010programming.aspx?ID=e37f16f3-44f5-48ad-962b-b0e6345ccc73 – Sep 14 '16 at 17:38FolderServerRelativeUrlunder Java environment and you can't insert it directly into the CAML Query file either. – Ali Sep 15 '16 at 08:23