Support paths as Buffers
This commit is contained in:
parent
30fbe92970
commit
8eca019157
2 changed files with 9 additions and 0 deletions
|
@ -37,6 +37,10 @@
|
|||
return [false]
|
||||
}
|
||||
|
||||
if (Buffer.isBuffer(p)) {
|
||||
p = p.toString()
|
||||
}
|
||||
|
||||
if (typeof p !== 'string') {
|
||||
return [false]
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue