-
Notifications
You must be signed in to change notification settings - Fork 154
Conversation
@@ -272,7 +280,7 @@ func (c copier) copyDirContents(src, dst, origDst string, uid, gid int, preserve | |||
} | |||
|
|||
// copyDir copies the directory at src to dst. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it might be better to maintain the original naming. The current naming seems to copy the child of src but actually src itself is the child.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
blacklist []string | ||
|
||
dstDirOwner *Owner | ||
dstFileAndChildrenOwner *Owner |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you clarify what dstFileAndChildrenOwner
means?
lib/fileio/utils.go
Outdated
) | ||
|
||
// fileOwners returns the uid & gid that own the file. | ||
func fileOwners(fi os.FileInfo) (uid int, gid int) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
may be more intuitive to call it getFileOwners.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
lib/fileio/copy.go
Outdated
for _, dir := range split { | ||
absDir := filepath.Join(prevDir, dir) | ||
if fi, err := os.Lstat(absDir); err != nil { | ||
for i, dir := range split { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
for dir in range split[:len(split) -1]
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! Just leave few comments.
No description provided.