We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents db8a85f + 9a40941 commit 13969a1Copy full SHA for 13969a1
preload.js
@@ -74,13 +74,13 @@ const Serial = {
74
return board.exit_raw_repl()
75
},
76
getNavigationPath: (navigation, target) => {
77
- return [navigation, target].filter(p => p).join('/')
+ return path.posix.join(navigation, target)
78
79
getFullPath: (root, navigation, file) => {
80
- return root + [navigation, file].filter(p => p).join('/')
+ return path.posix.join(root, navigation, file)
81
82
- getParentPath: (filePath) => {
83
- return filePath.split('/').slice(0, -1).join('/')
+ getParentPath: (navigation) => {
+ return path.posix.dirname(navigation)
84
}
85
86
0 commit comments