Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
lugenx committed May 5, 2023
1 parent 0f0dde9 commit 9ada9a6
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 13 deletions.
4 changes: 1 addition & 3 deletions convertFile.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const convertFile = (file) => {

const mdFileName = `${year}_${month}_${day}.md`;

// TODO: Create assets directory and move actual attachments
const formatTitle = (title) => {
return title ? `**${title.trim()}**` : "";
};
Expand All @@ -38,8 +37,7 @@ const convertFile = (file) => {
const formattedText = formatText(file.textContent);
const formattedAttachments = formatAttachments(file.attachments);
const timestamp = `${hours}:${minutes}`;
//2014_10_29.md
// const attachments = file.attachments;

const content = `\n- ${formattedTitle} (${timestamp}) \n\t- ${formattedText} \n\t- ${formattedAttachments}`;

return { mdFileName, content };
Expand Down
8 changes: 0 additions & 8 deletions copyAssets.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,8 @@ const fs = require("node:fs");
const path = require("node:path");

const copyAssets = (sourceDir, destinationDir) => {
// const sourceDir = "/Users/elgun/Desktop/folder1";
// const destinationDir = "/Users/elgun/Desktop/folder2";

const allFiles = fs.readdirSync(sourceDir);

// fs.opendirSync(sourceDir);
// fs.opendirSync(destinationDir);

let sourcePath, destinationPath, writeStream, ext;
let totalTransfers = 0;
let completedTransfers = 0;
Expand Down Expand Up @@ -49,6 +43,4 @@ const copyAssets = (sourceDir, destinationDir) => {
}
};

// copyAssets();

module.exports = copyAssets;
2 changes: 0 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,3 @@ const runSecondQuestion = () => {
};

runFirstQuestion();

// **18:45** [[quick capture]]: ![PXL_20230204_234526949](../assets/PXL_20230204_234526949.jpg){:height 86, :width 228}

0 comments on commit 9ada9a6

Please sign in to comment.