Python Forum
trouble with os.listdir on a network drive
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
trouble with os.listdir on a network drive
#9
Entering r"w:\\" worked.

If i am flowing what you said the using the letter drive made the script recognize it as a mounted drive (there is already a connection the computer can freely use). I not sure why using the IP address did not have the same result. In another script I have paths with the IP address and files are retrieved with out issue.

I assume, net, is the python method for establishing a connection to a drive (i.e. mount it).

also, both of you mentioned samba and paramiko which are for Linux if i am not mistaken. Was there something in my post that made you think i was using Linux?


Thank You
Reply


Messages In This Thread
RE: trouble with os.listdir on a network drive - by lconner - Jun-04-2019, 03:19 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to get a removable disc type in drive Daring_T 12 1,297 Feb-11-2024, 08:55 AM
Last Post: Gribouillis
  open python files in other drive akbarza 1 716 Aug-24-2023, 01:23 PM
Last Post: deanhystad
  Integrating Google Drive in App Lahearle 0 480 Jul-19-2023, 05:51 PM
Last Post: Lahearle
  code to send attachments contained on the drive. stefanoste78 1 872 Oct-12-2022, 02:16 AM
Last Post: Larz60+
  access is denied error 5 for network drive mapping ? ahmedbarbary 2 1,824 Aug-17-2022, 10:09 PM
Last Post: ahmedbarbary
  Cant Access D: Drive kucingkembar 4 1,362 Jul-28-2022, 04:53 PM
Last Post: kucingkembar
  Calling exe on network drive GrahamL 4 2,568 Jan-21-2022, 12:01 PM
Last Post: GrahamL
  Failing to copy file from a network to a local drive tester_V 4 7,152 Jan-20-2021, 07:40 AM
Last Post: tester_V
  listdir on IP Adress OEMS1 3 2,913 Jul-19-2020, 06:01 PM
Last Post: bowlofred
  Nested Subdirectory within current sub on shared network drive Agregware 1 1,951 Jun-19-2019, 10:07 PM
Last Post: Gribouillis

Forum Jump:

User Panel Messages

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