How to compare the local folder and ShareFile folders?

  • 2
  • Question
  • Updated 7 months ago
We managed to utilise the sample code in GitHub UploadLocalFiles.ps1 and managed to transfer the 13.3 GB data from local to the ShareFile.

We also utilised the ShareFile Mapped Drive and we did the comparison manually by right click and Properties of the root folder and compare with the ShareFile one. Is this best method? Is there any PowerShell ShareFile that can do this instead? It took awhile to run this process.

Thanks 
Photo of DC Partners

DC Partners

  • 11 Posts
  • 0 Reply Likes

Posted 1 year ago

  • 2
Photo of Eliezer Encarnacion

Eliezer Encarnacion, Software Engineer

  • 733 Posts
  • 102 Reply Likes
Hi,

Could you expand a bit on what exactly you'd like to compare? Any general properties like total folder size, or do you want to check each file one by one and see what differs?

Thanks,
Eli
Photo of DC Partners

DC Partners

  • 11 Posts
  • 0 Reply Likes
We would like to compare the local folder (ex. D:\Data\Archives\CustomerData\) with SF folder (//Shared Folders/Data/Archives/CustomerData) in total size and contains the number of files and folders.
Photo of Fulcra Networks

Fulcra Networks

  • 1 Post
  • 0 Reply Likes
We're looking for this functionality as well. We'd want to compare the file count locally to the file count in sharefile (programatically, not via  a manual check).

The issue we're having is that the FileCount property of the remote sfdrive accessed via powershell drive does not match what is sycned. sync-sfitems reports successful sync however the FileCount of the remote folder and the local folder do not match (the remote indicates more files than local). The FileCount of the sfdrive reports more files than we see browsing the directory in sharefile or browsing the local synced folder.
Photo of DC Partners

DC Partners

  • 11 Posts
  • 0 Reply Likes
Actually, we found that there is a tool called ShareFile Drive Mapper and we can do simply right click Properties to see the size and number of files.