Skip to content
This repository was archived by the owner on May 10, 2021. It is now read-only.

Commit 96b953a

Browse files
committed
i literally cant
1 parent adbbb83 commit 96b953a

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

lib/helpers/handleFileTracking.js

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,22 +28,23 @@ const handleFileTracking = ({ functionsPath, publishPath }) => {
2828
);
2929
const cleanConfiguredFiles = (trackedFiles, dirPath) => {
3030
trackedFiles.forEach((file) => {
31-
const filePath = join(dirPath, file);
31+
const filePath = join(dirPath, file.trim("\r"));
3232
if (file !== "") {
3333
if (process.platform === "win32") {
3434
console.log('FILE', { file })
35+
const newFile = file.trim("\r");
36+
console.log('NEW FILE', { newFile })
3537
try {
36-
console.log('1', join(filePath, "\\"))
37-
console.log('2', join(dirPath, `${file}\\`))
38-
console.log('3', `${filePath}\\`)
39-
console.log('4', join(dirPath, "next_shows_id\\"));
40-
console.log('5', filePath)
41-
console.log('6', [filePath, '\\'].join(''));
42-
emptyDirSync(join(dirPath, "next_shows_id\\"));
43-
// emptyDirSync(`${filePath}\\`);
44-
} catch (e) {
45-
console.log('do we get in here', file)
38+
// console.log('1', join(filePath, "\\"))
39+
// console.log('2', join(dirPath, `${file}\\`))
40+
// console.log('3', `${filePath}\\`)
41+
// console.log('4', join(dirPath, "next_shows_id\\"));
42+
// console.log('5', filePath)
43+
// console.log('6', [filePath, '\\'].join(''));
44+
emptyDirSync(filePath);
4645
removeSync(filePath);
46+
} catch (e) {
47+
console.log('e', e)
4748
}
4849
} else {
4950
removeSync(filePath);

0 commit comments

Comments
 (0)