Skip to content

Commit

Permalink
Process as platform specific files only these located in app folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Fatme Havaluova authored and Fatme Havaluova committed Jun 2, 2015
1 parent 8309939 commit 680720e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions lib/services/platform-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,16 @@ export class PlatformService implements IPlatformService {
}

// Process platform specific files
var contents = this.$fs.readDirectory(platformData.appDestinationDirectoryPath).wait();
var contents = this.$fs.readDirectory(path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME)).wait();
var files: string[] = [];

_.each(contents, d => {
var fsStat = this.$fs.getFsStats(path.join(platformData.appDestinationDirectoryPath, d)).wait();
let filePath = path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME, d);
let fsStat = this.$fs.getFsStats(filePath).wait();
if(fsStat.isDirectory() && d !== constants.APP_RESOURCES_FOLDER_NAME) {
this.processPlatformSpecificFiles(platform, this.$fs.enumerateFilesInDirectorySync(path.join(platformData.appDestinationDirectoryPath, d))).wait();
this.processPlatformSpecificFiles(platform, this.$fs.enumerateFilesInDirectorySync(filePath)).wait();
} else if(fsStat.isFile()) {
files.push(path.join(platformData.appDestinationDirectoryPath, d));
files.push(filePath);
}
});

Expand Down

0 comments on commit 680720e

Please sign in to comment.