The relevance for permissions of files or folders should be the same. If your existing query correctly locates the file, then you should be able to retrieve a file object using
File (your relevance)
From there, the discussion of DACLS and SDDL at Relevance: verify file permission and adjust accordingly should help.