Например, у вас есть файл a.txt
in G:
For example, you have a file a.txt
in G:1...
(from linux
,or md G:1...
):
os.listdir(r'G:1...')
[]
os.stat(r'G:1...')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
WindowsError: [Error 2] : 'G:\1...'
I want to know how can I get information of such fold (also I can't os.stat(r'G:1...file')
when it copied from linux.
...(from linux
,или md G:
For example, you have a file a.txt
in G:1...
(from linux
,or md G:1...
):
os.listdir(r'G:1...')
[]
os.stat(r'G:1...')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
WindowsError: [Error 2] : 'G:\1...'
I want to know how can I get information of such fold (also I can't os.stat(r'G:1...file')
when it copied from linux.
...):
os.listdir(r'G:
For example, you have a file
a.txt
inG:1...
(fromlinux
,ormd G:1...
):os.listdir(r'G:1...') [] os.stat(r'G:1...') Traceback (most recent call last): File "<stdin>", line 1, in <module> WindowsError: [Error 2] : 'G:\1...'
I want to know how can I get information of such fold (also I can't
os.stat(r'G:1...file')
when it copied from linux....')
[]
os.stat(r'G:For example, you have a file
a.txt
inG:1...
(fromlinux
,ormd G:1...
):os.listdir(r'G:1...') [] os.stat(r'G:1...') Traceback (most recent call last): File "<stdin>", line 1, in <module> WindowsError: [Error 2] : 'G:\1...'
I want to know how can I get information of such fold (also I can't
os.stat(r'G:1...file')
when it copied from linux....')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
WindowsError: [Error 2] : 'G:1...'
Я хочу знать, как я могу получить информацию о такой складке (также я не могу
os.stat(r'G:
For example, you have a file
a.txt
inG:1...
(fromlinux
,ormd G:1...
):os.listdir(r'G:1...') [] os.stat(r'G:1...') Traceback (most recent call last): File "<stdin>", line 1, in <module> WindowsError: [Error 2] : 'G:\1...'
I want to know how can I get information of such fold (also I can't
os.stat(r'G:1...file')
when it copied from linux....file'), когда она скопирована с linux.
Так же, как комментарий @eryksun:
BTW: любая деталь знает препроцесс пути в windows, и сообщение будет оценено.