Skip to content

Commit 460f658

Browse files
committed
test changes
1 parent 097e7ac commit 460f658

File tree

2 files changed

+0
-48
lines changed

2 files changed

+0
-48
lines changed

lib/DeploymentProvider/Providers/WebAppDeploymentProvider.js

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@ class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider_1.BaseWebApp
8282
case packageUtility_1.PackageType.folder:
8383
let tempPackagePath = utility.generateTemporaryFolderOrZipPath(`${process.env.RUNNER_TEMP}`, false);
8484
// exluding release.zip while creating zip for deployment.
85-
yield this.printFilesInDirectory(webPackage);
8685
yield this.deleteReleaseZip(webPackage);
8786
webPackage = (yield zipUtility.archiveFolder(webPackage, "", tempPackagePath));
8887
core.debug("Compressed folder into zip " + webPackage);
@@ -104,27 +103,6 @@ class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider_1.BaseWebApp
104103
}
105104
});
106105
}
107-
printFilesInDirectory(directoryPath) {
108-
return __awaiter(this, void 0, void 0, function* () {
109-
core.info("release files under a folder");
110-
fs.readdir(directoryPath, (err, files) => {
111-
if (err) {
112-
core.info(`Error reading directory: ${err.message}`);
113-
return;
114-
}
115-
files.forEach(file => {
116-
const filePath = path_1.default.join(directoryPath, file);
117-
fs.stat(filePath, (err, stats) => {
118-
if (err) {
119-
core.info(`Error reading file info: ${err.message}`);
120-
return;
121-
}
122-
core.info(filePath);
123-
});
124-
});
125-
});
126-
});
127-
}
128106
updateStartupCommand() {
129107
return __awaiter(this, void 0, void 0, function* () {
130108
let currentConfig = yield this.appService.getConfiguration();

src/DeploymentProvider/Providers/WebAppDeploymentProvider.ts

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ export class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider {
4444
let tempPackagePath = utility.generateTemporaryFolderOrZipPath(`${process.env.RUNNER_TEMP}`, false);
4545
// exluding release.zip while creating zip for deployment.
4646

47-
await this.printFilesInDirectory(webPackage);
48-
4947
await this.deleteReleaseZip(webPackage);
5048

5149
webPackage = await zipUtility.archiveFolder(webPackage, "", tempPackagePath) as string;
@@ -73,30 +71,6 @@ export class WebAppDeploymentProvider extends BaseWebAppDeploymentProvider {
7371
}
7472
}
7573

76-
private async printFilesInDirectory(directoryPath: string) {
77-
core.info("release files under a folder");
78-
fs.readdir(directoryPath, (err, files) => {
79-
if (err) {
80-
core.info(`Error reading directory: ${err.message}`);
81-
return;
82-
}
83-
84-
files.forEach(file => {
85-
const filePath = path.join(directoryPath, file);
86-
fs.stat(filePath, (err, stats) => {
87-
if (err) {
88-
core.info(`Error reading file info: ${err.message}`);
89-
return;
90-
}
91-
92-
93-
core.info(filePath);
94-
95-
});
96-
});
97-
});
98-
}
99-
10074
private async updateStartupCommand() {
10175
let currentConfig = await this.appService.getConfiguration();
10276
let currentStartupCommand = currentConfig.properties.appCommandLine;

0 commit comments

Comments
 (0)