Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Aug 11, 2021. It is now read-only.
/fstreamPublic archive

Commit6a77d2f

Browse files
committed
Clobber a Link if it's in the way of a File
Fixesisaacs/node-tar#212
1 parent1e4527f commit6a77d2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎lib/writer.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ Writer.prototype._stat = function (current) {
147147

148148
// if it's a type change, then we need to clobber or error.
149149
// if it's not a type change, then let the impl take care of it.
150-
if(currentType!==self.type){
150+
if(currentType!==self.type||self.type==='File'&&current.nlink>1){
151151
returnrimraf(self._path,function(er){
152152
if(er)returnself.error(er)
153153
self._old=null

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp