-
-
Notifications
You must be signed in to change notification settings - Fork 37
Bugfix/file sorting #78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is some commented code and console log left behind.
I also made a suggestion on the sorting function name.
index.js
Outdated
@@ -19,6 +19,13 @@ function listFolder(folder) { | |||
let filePath = path.resolve(folder, f) | |||
return !fs.lstatSync(filePath).isDirectory() | |||
}) | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The old code is still commented.
ui/arduino2/store.js
Outdated
const files = await serial.ilistFiles(path) | ||
return files.map(f => ({ | ||
let files = await serial.ilistFiles(path) | ||
console.log(files) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Console log
ui/arduino2/store.js
Outdated
return files | ||
} | ||
|
||
function filesSortAlphabetically(entryA, entryB) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like to propose the function name to be sortFilesAlphabetically
to more or less follow the verb-noun names of other methods.
will update and PR again :) |
@murilopolese I have fixed the PR |
fixed file sorting for both board and disk