Skip to content

Commit

Permalink
Cherry pick from master: Fix build issue with fs constants F_OK (node…
Browse files Browse the repository at this point in the history
  • Loading branch information
driver-deploy-2 committed Apr 3, 2017
1 parent 204bd03 commit ccdc3f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion csServerComp/ServerComponents/creator/MapLayerFactory.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class MapLayerFactory {
}
var fileList: IProperty[] = [];
var templateFolder: string = path.join(workingDir, 'public', 'data', 'templates');
fs.access(templateFolder, fs.F_OK, (err) => {
fs.access(templateFolder, (fs.constants || fs).F_OK, (err) => {
if (err) {
console.log(`Template-folder "${templateFolder}" not found`);
} else {
Expand Down

0 comments on commit ccdc3f9

Please sign in to comment.