monaca / monaca-lib

npm package for handling Monaca cloud API and local debugging API
http://monaca.io
Other
14 stars 11 forks source link

Filter files when running getLocalProjectFiles() #31

Closed masahirotanaka closed 9 years ago

masahirotanaka commented 9 years ago

If the project has very large amount of files, it will cause trouble when getting file tree from the debugger. When calling this.monaca.getLocalProjectFiles() from Localkit.getProjectFiles(), it is actually filtering to get files in the "/www" directory, and ignoring all dot-files.

However, Monaca.getLocalProjectFiles() first get all files in the specified directory and calculating CRC32 hash for each found files, before filtering out the unnecessary files.

Therefore, please fix the logic and only calculate the hash files that are necessary to use.

JW-Vinayak commented 9 years ago

@masahirotanaka I will start working on it now.