为什么python glob无法检测到我的thumbdrive(我该怎么办?) [英] Why can't python glob detect my thumbdrive (and what can I do about it?)

查看:121
本文介绍了为什么python glob无法检测到我的thumbdrive(我该怎么办?)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

所以我插入了一个拇指驱动器.它位于/dev/sdb1.它上面有一些文件,并已挂载.我会

So I got a thumb-drive plugged in. Its at /dev/sdb1. Its got some files on it, and it is mounted. I do

>>> glob.glob("/dev/sdb1/*")
[]

为什么会这样,我该怎么办?

Why is this and what can I do about it?

https://pypi.python.org/pypi/glob2

推荐答案

"...并且已安装."

"... and it is mounted."

但它未安装在/dev/sdb1上;那只是它的设备文件.检查实际的安装点以找到驱动器上存储的文件.

But it is not mounted on /dev/sdb1; that is simply its device file. Examine the actual mount point to find the files stored on the drive.

这篇关于为什么python glob无法检测到我的thumbdrive(我该怎么办?)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆