Navigation Menu

Skip to content

Commit

Permalink
Fixes #13. Bundled folders should have 755 mode.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakub Pawlowicz committed Sep 6, 2012
1 parent 75dbaf2 commit c89e1fa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/assetspkg
Expand Up @@ -164,7 +164,7 @@ var makeDir = function(dir) {
toRoot.split(isWindows ? '\\' : '/').forEach(function(part) {
currentDir = path.join(currentDir, part);
if (!path.existsSync(currentDir))
fs.mkdirSync(currentDir, 0770);
fs.mkdirSync(currentDir, 0775);
});
};

Expand Down
6 changes: 5 additions & 1 deletion test/binary-test.js
Expand Up @@ -52,7 +52,11 @@ assert.notHasFile = function(set, type, name) {
assert.isFalse(existsSync(fullPath(path.join('test/data', set, 'public', type, name))));
};
assert.hasBundledFile = function(set, type, name) {
assert.isTrue(existsSync(fullPath(path.join('test/data', set, 'public', type, 'bundled', name))));
var filePath = fullPath(path.join('test/data', set, 'public', type, 'bundled', name));
assert.isTrue(existsSync(filePath));

if (!isWindows)
assert.equal(16877, fs.statSync(path.dirname(filePath)).mode);
};
assert.notHasBundledFile = function(set, type, name) {
assert.isFalse(existsSync(fullPath(path.join('test/data', set, 'public', type, 'bundled', name))));
Expand Down

0 comments on commit c89e1fa

Please sign in to comment.