How can I initialize my object filesToDelete?
Use project.fileTree()
. (project.files()
is for FileCollection
s.)
And how can I find which classes implements FileTree interface from the documentation?
The implementation classes are internal, and you shouldn't have to worry about them.