Skip to content

Conversation

@gapra-msft
Copy link
Member

Description

  • Feature / Bug Fix: (Brief description of the feature or issue being addressed)

  • Related Links:

  • Issues

  • Team thread

  • Documents

  • [Email Subject]

Type of Change

  • Bug fix
  • New feature
  • Documentation update required
  • Code quality improvement
  • Other (describe):

How Has This Been Tested?

Thank you for your contribution to AzCopy!

@gapra-msft gapra-msft changed the base branch from main to gapra/azcopyDependencies September 10, 2025 23:30
return srcServiceClient, srcCredType, nil
}

func GetDestinationServiceClient(ctx context.Context,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

  • Can this be consolidated into one function to reduce code dupe?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Creating an item for this. There are some updates I need to make with the method args so I'll clean it up at once after the core of the migration is done

Base automatically changed from gapra/azcopyDependencies to gapra/libraryPhase2 September 26, 2025 22:18
@@ -0,0 +1,144 @@
package azcopy
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we need the microsoft licensing header?

srcReauthTok = (*common.ScopedAuthenticator)(common.NewScopedCredential(at, common.ECredentialType.OAuthToken()))
}

options := traverser.CreateClientOptions(common.AzcopyCurrentJobLogger, nil, srcReauthTok)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we add a condition in the client creation for if we're not using OAuth tokens?

@@ -0,0 +1,122 @@
package cmd

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing licensing header

@@ -0,0 +1,122 @@
package cmd
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

missing Microsoft licensing header


// Create Destination Client.
var azureFileSpecificOptions any
if fromTo.To() == common.ELocation.File() || fromTo.To() == common.ELocation.FileNFS() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fromTo.To().IsFile()

Suggested change
if fromTo.To() == common.ELocation.File() || fromTo.To() == common.ELocation.FileNFS() {
if fromTo.To() == common.ELocation.File() || fromTo.To() == common.ELocation.FileNFS() {


// Create Source Client.
var azureFileSpecificOptions any
if loc == common.ELocation.File() || loc == common.ELocation.FileNFS() {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

loc.IsFile()

Suggested change
if loc == common.ELocation.File() || loc == common.ELocation.FileNFS() {
if loc == common.ELocation.File() || loc == common.ELocation.FileNFS() {

preserveOwner bool
preserveSMBInfo bool
preservePOSIXProperties bool
followSymlinks bool
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did we remove it? we will need this for NFS

cooked.destination = common.ResourceString{Value: common.ToExtendedPath(common.CleanLocalPath(raw.dst))}
}

if err = cooked.symlinkHandling.Determine(raw.followSymlinks, raw.preserveSymlinks); err != nil {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ditto

@dphulkar-msft
Copy link
Member

Left few comments.
Otherwise LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants