Skip to content

Commit 680720e

Browse files
Fatme HavaluovaFatme Havaluova
Fatme Havaluova
authored and
Fatme Havaluova
committed
Process as platform specific files only these located in app folder
#514
1 parent 8309939 commit 680720e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/services/platform-service.ts

+5-4
Original file line numberDiff line numberDiff line change
@@ -157,15 +157,16 @@ export class PlatformService implements IPlatformService {
157157
}
158158

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

163163
_.each(contents, d => {
164-
var fsStat = this.$fs.getFsStats(path.join(platformData.appDestinationDirectoryPath, d)).wait();
164+
let filePath = path.join(platformData.appDestinationDirectoryPath, constants.APP_FOLDER_NAME, d);
165+
let fsStat = this.$fs.getFsStats(filePath).wait();
165166
if(fsStat.isDirectory() && d !== constants.APP_RESOURCES_FOLDER_NAME) {
166-
this.processPlatformSpecificFiles(platform, this.$fs.enumerateFilesInDirectorySync(path.join(platformData.appDestinationDirectoryPath, d))).wait();
167+
this.processPlatformSpecificFiles(platform, this.$fs.enumerateFilesInDirectorySync(filePath)).wait();
167168
} else if(fsStat.isFile()) {
168-
files.push(path.join(platformData.appDestinationDirectoryPath, d));
169+
files.push(filePath);
169170
}
170171
});
171172

0 commit comments

Comments
 (0)