Python Forum
How to access files from shared folder?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to access files from shared folder?
#4
//xx.xx.xx.xx//d$//ftpAutoLogin//jflow-data-files-poc is not a path on a regular file system, it's a network resource with a different protocol.

Just mount the samba share as drive letter and then you can use regular file system operations like open or os.listdir().

If you want to use the samba protocol directly, you have to look for smbprotocol on PyPi or similar packages.
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: How to access files from shared folder? - by DeaD_EyE - Jun-25-2020, 08:40 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Compare folder A and subfolder B and display files that are in folder A but not in su Melcu54 3 730 Jan-05-2024, 05:16 PM
Last Post: Pedroski55
  Rename files in a folder named using windows explorer hitoxman 3 882 Aug-02-2023, 04:08 PM
Last Post: deanhystad
  Rename all files in a folder hitoxman 9 1,757 Jun-30-2023, 12:19 AM
Last Post: Pedroski55
  How to loop through all excel files and sheets in folder jadelola 1 4,843 Dec-01-2022, 06:12 PM
Last Post: deanhystad
  python gzip all files from a folder mg24 3 4,438 Oct-28-2022, 03:59 PM
Last Post: mg24
  delete all files and subdirectory from a main folder mg24 7 1,775 Oct-28-2022, 07:55 AM
Last Post: ibreeden
  Merge all json files in folder after filtering deneme2 10 2,598 Sep-18-2022, 10:32 AM
Last Post: deneme2
  Server Folder Error : WinError5 Access Denied fioranosnake 1 1,208 Jun-21-2022, 11:11 PM
Last Post: Larz60+
  Dynamic File Name to a shared folder with open command in python sjcsvatt 9 6,463 Jan-07-2022, 04:55 PM
Last Post: bowlofred
  Compare filename with folder name and copy matching files into a particular folder shantanu97 2 4,725 Dec-18-2021, 09:32 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020