dongyang7152 2018-07-20 13:49
浏览 233
已采纳

获取文件所有者的另一种方法,而不是从Windows上的advapi32获取文件所有者

I'm working on a golang script who get fileInfo and owner from every file using go 1.10.3 on a 32 bit windows. My script work well but im facing a problem. The library advapi32 and more specificly GetNamedSecurityInfoW and LookupAccountNameW functions take around 1 millisecond since I've got a big amount of files the "scan" is obviously too long. I just wanted too now if there's another way to do it faster ? I'm open on any suggetion or help Thanks.

  • 写回答

1条回答 默认 最新

  • duanhan9334 2018-07-24 06:01
    关注

    Thank you gonutz i managed to make it quite faster with goroutine, I aproach 2 500 000 files every 22minute. And my algorythm is still not optimised.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 高德地图点聚合中Marker的位置无法实时更新
  • ¥15 DIFY API Endpoint 问题。
  • ¥20 sub地址DHCP问题
  • ¥15 delta降尺度计算的一些细节,有偿
  • ¥15 Arduino红外遥控代码有问题
  • ¥15 数值计算离散正交多项式
  • ¥30 数值计算均差系数编程
  • ¥15 redis-full-check比较 两个集群的数据出错
  • ¥15 Matlab编程问题
  • ¥15 训练的多模态特征融合模型准确度很低怎么办