Getting error when attempting to move files.

  • 1
  • Problem
  • Updated 11 months ago
  • (Edited)
I am trying to move files from a local share to Sharefile utilizing the same folder structure.  This local share will contain subfolders though.  I am getting an error: "Sync-SfItem : Conflict Item:A folder with this name already exists. Try again."  

I get this on the 2nd and subsequent runs.  It actually works correctly the 1st time, but then fails on those subfolders that still exist on the local share.

I am using the following cmdlet:

New-PSDrive -Name sfdrive -PSProvider ShareFile -Root "/" -Client $sfClient

Sync-SfItem -LocalPath "\\Network\Sharefile\*" -Move -KeepFolders -Upload -ShareFilePath "/Sharefile" -Recursive

I know the folders exist, and just need the files to move into them.  Thank you.
Photo of Eric

Eric

  • 7 Posts
  • 1 Reply Like

Posted 11 months ago

  • 1
Photo of Eric

Eric

  • 7 Posts
  • 1 Reply Like
I just had to add -Overwrite to the cmdlet and it worked.