chore(fs/abstract): use path.posix
All paths in this lib are Posix paths and should be treated as such, even on Windows.
This commit is contained in:
parent
d6012d8639
commit
2353552e11
@ -3,15 +3,17 @@
|
||||
// $FlowFixMe
|
||||
import asyncMap from '@xen-orchestra/async-map'
|
||||
import getStream from 'get-stream'
|
||||
import path from 'path'
|
||||
import { finished } from 'readable-stream'
|
||||
import { fromCallback, fromEvent, ignoreErrors, timeout } from 'promise-toolbox'
|
||||
import { parse } from 'xo-remote-parser'
|
||||
import { randomBytes } from 'crypto'
|
||||
import { resolve } from 'path'
|
||||
import { type Readable, type Writable } from 'stream'
|
||||
|
||||
import { createChecksumStream, validChecksumOfReadStream } from './checksum'
|
||||
|
||||
const { resolve } = path.posix
|
||||
|
||||
type Data = Buffer | Readable | string
|
||||
type FileDescriptor = {| fd: mixed, path: string |}
|
||||
type LaxReadable = Readable & Object
|
||||
|
Loading…
Reference in New Issue
Block a user