In the Sublime Text 3 API fot, there is a function for getting files in a project, but there is a function project_data()that returns information about the project. for files you can do like this:
project_data = sublime.active_window().project_data()
project_folder = project_data['folders'][0]['path']
# and here os.walk(project_folder )
source
share