I made CAML query to filter items in an SPList view but I want to apply this query only on the root folder of SPList, not the subfolders, because I copied items from the root folder to subfolder. When I want to open a subfolder I have to see the items there.
Because I have items to hide them from the main view and I copied them to subfolders
<Query>
<Where>
<Or>
<And>
<Or>
<Eq>
<FieldRef Name='LinkFilename' />
<Value Type='Computed'>Dossiers envoyés</Value>
</Eq>
<Eq>
<FieldRef Name='LinkFilename' />
<Value Type='Computed'>Dossiers à suivre</Value>
</Eq>
</Or>
<Or>
<Eq>
<FieldRef Name='Editor' />
<Value Type='User'>system</Value>
</Eq>
<Eq>
<FieldRef Name='Editor' />
<Value Type='User'>redacteur</Value>
</Eq>
</Or>
</And>
<Eq>
<FieldRef Name='Envoy_x00e9__x0020_vers_x0020_directeur' />
<Value Type='Boolean'>0</Value>
</Eq>
</Or>
</Where>
</Query>
// this is the filter that hide these items from the main view.
then i moved them to the Dossiers envoyés subfolder when their value change from 0
to 1
<Eq>
<FieldRef Name='Envoy_x00e9__x0020_vers_x0020_directeur' />
<Value Type='Boolean'>0</Value>
</Eq>
//my list root folder contains the followinf tree
+ dossiers envoyes
- item 2
- item 1
...
+ dossiers archive
- item 1
- item 2
...
- item 1
- item 2