I'm trying to find a way to write a CAML query that checks if a file with empty base name exists.

For example:


Where the part before the extension is an empty string.

You can see below CAML that I have now, However when I try to run it with ".gif", although the file is there, nothing is returned.

                <FieldRef Name='FileLeafRef'/>
                <Value Type='Text'>@</Value>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.