0

I am trying to access a local drive (Windows computer) from the remote desktop (also Windows). During which I need to check whether a certain folder/ file exist. However os.path.isfile() and os.path.isdir() only works on local file.

How can I check whether a certain folder/ file exists on a local drive on remote desktop by python?

Aqqqq
  • 816
  • 2
  • 10
  • 27
  • I think it really depends on which platform you're trying to do this and which protocol it uses, e.g. something mounted on Windows with UNC/Samba might be different than any machine using SSH or so. – PrinsEdje80 Feb 24 '22 at 14:03
  • How can I check for the protocol? – Aqqqq Feb 24 '22 at 14:21
  • Yes. Thank you. Should I delete this question or leave it as sort of guidance for the others that might used the wrong keywords? – Aqqqq Feb 24 '22 at 14:53

0 Answers0