jonschlinkert / fs-utils

Generalized file and path utils for Node.js projects.
MIT License
34 stars 4 forks source link

copyFileSync for swf file #6

Open sea-kg opened 8 years ago

sea-kg commented 8 years ago

when I try

fs_utils.copyFileSync('./src/video-js.swf', './dist/video-js.swf'); I got diff md5 and size of files. For experiments you can use: https://github.com/videojs/video-js-swf/blob/master/dist/video-js.swf

sea-kg commented 8 years ago

Solution, which help me: fs.createReadStream('./src/video-js.swf').pipe(fs.createWriteStream('./dist/video-js.swf'));

jonschlinkert commented 8 years ago

we should probably just swap in a module like [copy](https://github.com/jonschlinkert/copy] for this. thanks for the issue