elastic / enterprise-search-network-drive-connector

Official Enterprise Search | Workplace Search - Network Drives Connector
Other
6 stars 3 forks source link

Unexpected behaviour of connect_and_get_all_folders method in sync_network_drives.py #25

Closed AlanNggg closed 1 year ago

AlanNggg commented 1 year ago

I get this error when network_drive_connector.yml has network_drive.path: "public".

"sync_network_drives.py", line 63, in connect_and_get_all_folders
    path=os.path.join(*self.drive_path.parts[1:]),
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: join() missing 1 required positional argument: 'path'

It seems that network_drive.path must be in form of "public/dummy" etc, and cannot be "public". Is it an expected behaviour?

praveen-elastic commented 1 year ago

Hi, yes, the drive_path must be in that form, service-name/folder-path

Here the service-name is the name of the smb share. You can refer the following line in the documentation. https://github.com/elastic/enterprise-search-network-drive-connector#gather-network-drives-details

Let me know if you need more help :)

AlanNggg commented 1 year ago

Thanks for your reply :) Can I ask a question about App Search Web Crawler ?

praveen-elastic commented 1 year ago

I don't have much idea about that, feel free to ask it on Elastic's discuss channel https://discuss.elastic.co/ and any member would help you out.

AlanNggg commented 1 year ago

Thank you very much :)