We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 69ff802 commit d047acaCopy full SHA for d047aca
packages/@vue/cli-ui/apollo-server/connectors/folders.js
@@ -24,7 +24,13 @@ function isDirectory (file) {
24
}
25
26
async function list (base, context) {
27
- const files = await fs.readdir(base, 'utf8')
+ let dir = base
28
+ if (isPlatformWindows) {
29
+ if (base.match(/^([A-Z]{1}:)$/)) {
30
+ dir = path.join(base, '\\')
31
+ }
32
33
+ const files = await fs.readdir(dir, 'utf8')
34
return files.map(
35
file => {
36
const folderPath = path.join(base, file)
0 commit comments