我有一个程序,比较文件,看看我更新了哪些文件,哪些文件和文件夹是新的。在
我在家里和学校都有一个名为School的文件夹,里面的内容完全相同。我的程序可以很好地访问和比较USB上的文件,但我似乎找不到在学校访问文件的正确路径。在
[编辑]:我从学校网站下载了rdp。要打开我的文档,我连接到school.rdp,输入我的用户名和密码,然后窗口就会出现。在
这是我找到基本文件夹的程序的开始import os
# HOME, this works
print(os.path.exists("C:/School")) # True
print(os.path.exists("C:")) # True
# SCHOOL, I've tried all of these but none of them work
print(os.path.exists("N:/School")) # False
print(os.path.exists("N:/Documents")) # False
print(os.path.exists("N:")) # False
print(os.path.exists("N:/cha-sr-003/Students$/Intake2011/11FullerT/Documents/School")) # False
print(os.path.exists("//cha-sr-003/Students$/Intake2011/11FullerT/Documents/School")) # False
print(os.path.exists("cha-sr-003")) # False
有人知道允许我访问远程桌面连接上的文件夹的路径吗?如果这是不可能的,有没有其他方法我可以用来访问他们?在
谢谢你的帮助