Comments (3)
看起来和 smart_lstat 关系不大,tarfile 只能读本地文件,FileNotFoundError 指的是 tarfile 无法在本地文件系统找到文件:s3://yl-dataset/carton/2301_huafeng/raw
_2scan/2023-03-07-13_39_37.35595。但是我们会加上 smart_lstat 方法
from megfile.
如果你是 megvii 内部人员,可以尝试使用 restore
库,from restore.archive import tarfile_open
from megfile.
看起来和 smart_lstat 关系不大,tarfile 只能读本地文件,FileNotFoundError 指的是 tarfile 无法在本地文件系统找到文件:s3://yl-dataset/carton/2301_huafeng/raw _2scan/2023-03-07-13_39_37.35595。但是我们会加上 smart_lstat 方法
我魔改了标准库, 通过侵入式地把标准库中的 path 操作替换为了 megfile, 可以在不改动代码的情况下, 让 Python 程序兼容 oss. 所以非常看中和标准库的一致性, 期待添加 smart_lstat
!
from megfile.
Related Issues (20)
- ValueError: unacceptable mode: 'w+b' HOT 2
- 没有对删除失败的文件进行处理 HOT 1
- s3, fs, http, stdio 将 functions 挪到 class,并自动生成 function
- sync, mv, cp, remove 忽略掉过程中被删除的文件 HOT 1
- smart_get_md5 可以传入 List[str] 对多个 path 做 md5 的 md5
- Path 类与 pathlib 中的行为对其 HOT 2
- v1.0.0执行smart_copy报错 HOT 1
- smart_getmd5_by_paths 排序 paths,使文件一样 md5 就一样
- 对更多错误进行 retry HOT 1
- 需要设计一下,每个 s3 的方法支持单独指定 endpoint HOT 4
- is_file提示没有参数followlinks HOT 4
- megfile.smart_scandir(".") 返还结果不支持 with 操作 HOT 1
- smart_stat 返回的对象的 st_mode 是 None HOT 3
- megfile sync 不能同步文件夹 HOT 2
- smart_copy 报错 TypeError: stat() got an unexpected keyword argument 'follow_symlinks' HOT 1
- smart_scandir 返回的 FileEntry 中的判断是否为软连接的函数有误 HOT 1
- Cannot use s3 related functions HOT 3
- megfile.smart_glob missing s3 profile HOT 4
- handling gzip encoded http responses? HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from megfile.