- Joined
- Jun 25, 2020
- Messages
- 1
- Reaction score
- 0
I am trying to connect share folder using python not able to connect
from pathlib import Path
data_folder = Path("//xx.xx.xx.xx//d$//ftpAutoLogin//jflow-data-files-poc")
file_to_open = data_folder / "mscreen_gxml20200522-143205-512.xml"
f = open(file_to_open)
print(f.read())
I am getting below error
Traceback (most recent call last):
File "/Users/sam1546/Documents/jflow_ebm_data_extraction/ebm_extractor_sharepath.py", line 19, in <module>
f = open(file_to_open)
FileNotFoundError: [Errno 2] No such file or directory: '//xx.xx.xx.xx/d$/ftpAutoLogin/jflow-data-files-poc/mscreen_gxml20200522-143205-512.xml'
Process finished with exit code 1
from pathlib import Path
data_folder = Path("//xx.xx.xx.xx//d$//ftpAutoLogin//jflow-data-files-poc")
file_to_open = data_folder / "mscreen_gxml20200522-143205-512.xml"
f = open(file_to_open)
print(f.read())
I am getting below error
Traceback (most recent call last):
File "/Users/sam1546/Documents/jflow_ebm_data_extraction/ebm_extractor_sharepath.py", line 19, in <module>
f = open(file_to_open)
FileNotFoundError: [Errno 2] No such file or directory: '//xx.xx.xx.xx/d$/ftpAutoLogin/jflow-data-files-poc/mscreen_gxml20200522-143205-512.xml'
Process finished with exit code 1