GithubHelp home page GithubHelp logo

Comments (3)

LoveEatCandy avatar LoveEatCandy commented on July 16, 2024

看起来和 smart_lstat 关系不大,tarfile 只能读本地文件,FileNotFoundError 指的是 tarfile 无法在本地文件系统找到文件:s3://yl-dataset/carton/2301_huafeng/raw
_2scan/2023-03-07-13_39_37.35595。但是我们会加上 smart_lstat 方法

from megfile.

LoveEatCandy avatar LoveEatCandy commented on July 16, 2024

如果你是 megvii 内部人员,可以尝试使用 restore 库,from restore.archive import tarfile_open

from megfile.

DIYer22 avatar DIYer22 commented on July 16, 2024

看起来和 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.