Fetches files for the user.
If called from scratchpad or if the user does not have permission to access the project.
A promise that resolves with the project's files data.
Fetches files for the user.
Throws
If called from scratchpad or if the user does not have permission to access the project.