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
#8
You don't want a remote control, you want to access remote files.
Paramiko is used for ssh and ssh is used on linux servers.

Python can only access on mounted file systems. You can use the net command
to mount your samba share on a drive letter and with Python you can
access this path. Newer Python Versions will be a little bit faster
on remote file access, because they use os.scandir in os.walk.
os.scandir does not request all attributes of the file,
which increases the search speed.

https://www.python.org/dev/peps/pep-0471/#os-walk
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
Reply


Messages In This Thread
RE: trouble with os.listdir on a network drive - by DeaD_EyE - Jun-04-2019, 07:56 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Question How to get a removable disc type in drive Daring_T 12 1,284 Feb-11-2024, 08:55 AM
Last Post: Gribouillis
  open python files in other drive akbarza 1 712 Aug-24-2023, 01:23 PM
Last Post: deanhystad
  Integrating Google Drive in App Lahearle 0 479 Jul-19-2023, 05:51 PM
Last Post: Lahearle
  code to send attachments contained on the drive. stefanoste78 1 870 Oct-12-2022, 02:16 AM
Last Post: Larz60+
  access is denied error 5 for network drive mapping ? ahmedbarbary 2 1,822 Aug-17-2022, 10:09 PM
Last Post: ahmedbarbary
  Cant Access D: Drive kucingkembar 4 1,359 Jul-28-2022, 04:53 PM
Last Post: kucingkembar
  Calling exe on network drive GrahamL 4 2,561 Jan-21-2022, 12:01 PM
Last Post: GrahamL
  Failing to copy file from a network to a local drive tester_V 4 7,149 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,946 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