Code Monkey home page Code Monkey logo

Comments (7)

vsoch avatar vsoch commented on August 28, 2024

oup! looks like we need a shutil.rmtree. Give me a few minutes to look into this!

from deid.

vsoch avatar vsoch commented on August 28, 2024

Could you please show me the way you are invoking clean? If done with a general client, we can't just delete the entire folder at the end of a function call (we lose the files!) and so we would want to remove the directory given some circumstances. Let me know your calls and I'll figure out the best approach!

from deid.

fimafurman avatar fimafurman commented on August 28, 2024

from deid.

vsoch avatar vsoch commented on August 28, 2024

hey @fimafurman ! I'm bad so I didn't test this, but would you care to do the honors? Here is the PR and the branch #69. The exit_ was a good idea, but we can't be sure that the user doesn't want the folder to exist after exiting python. So instead I create the folder on init, and then remote it and only re-create it given that a save is called. In your case, it shouldn't be called so you shouldn't see the extra temporary folders created. Let me know if it works, and I can merge and upload to pypi.

from deid.

fimafurman avatar fimafurman commented on August 28, 2024

from deid.

fimafurman avatar fimafurman commented on August 28, 2024

I tested my workflow and the folder is properly deleted right after creation. Not sure if there's a way to just come up with the safe name, or whether the file could be created only when needed.

from deid.

vsoch avatar vsoch commented on August 28, 2024

Yes! Let me try this, I have an idea.

from deid.

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.