Skip to content

Commit 1021e99

Browse files
authored
Merge pull request #2698 from Microsoft/users/yacao/m106hotfixarchievefiles
ArchiveFiles: miscalculating root folder
2 parents 3df7fee + 6dc0944 commit 1021e99

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Tasks/ArchiveFiles/archivefiles.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ function getOptions() {
6666
return { cwd: dirName };
6767
} else {
6868
var stats: tl.FsStats = tl.stats(rootFolder);
69-
if (stats.isFile) {
69+
if (stats.isFile()) {
7070
dirName = path.dirname(rootFolder);
7171
} else {
7272
dirName = rootFolder;
@@ -269,7 +269,7 @@ function doWork() {
269269
if (replaceExistingArchive) {
270270
try {
271271
var stats: tl.FsStats = tl.stats(archiveFile);
272-
if (stats.isFile) {
272+
if (stats.isFile()) {
273273
console.log('removing existing archive file before creation: ' + archiveFile);
274274
} else {
275275
failTask('Specified archive file: ' + archiveFile + ' already exists and is not a file.');

Tasks/ArchiveFiles/task.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 0,
17-
"Patch": 5
17+
"Patch": 6
1818
},
1919
"groups": [
2020
{

Tasks/ArchiveFiles/task.loc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
"version": {
1515
"Major": 1,
1616
"Minor": 0,
17-
"Patch": 5
17+
"Patch": 6
1818
},
1919
"groups": [
2020
{

0 commit comments

Comments
 (0)