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:
Julien Fontanet 2018-12-06 10:30:42 +01:00
parent d6012d8639
commit 2353552e11

View File

@ -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