Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions sync.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,10 @@ function downloadFile(url, dest) {
async function syncFilesUp() {
for (const fileName of filesToSync) {
const filePath = path.resolve(path.join(dirToSync, fileName))
const stat = await fs.statSync(filePath)
const stat = fs.statSync(filePath)

if (stat.isFile()) {
const fileContent = await fs.readFileSync(filePath)
const fileContent = fs.readFileSync(filePath)
await put(fileName, fileContent, { access: 'public', addRandomSuffix: false })
}
}
Expand Down