Giter VIP home page Giter VIP logo

Comments (6)

dufferzafar avatar dufferzafar commented on August 25, 2024

I don't really get what you mean by "recursive scanning of backup file".

Also, If we set topdown=False we won't be able to ignore the directories (See this).

from python-scripts.

kwikadi avatar kwikadi commented on August 25, 2024

A very poor implementation would require you to scan the backup folder after backing up the entire drive, and removing offending folders.
Cant think of anything else right now. If I do, I'll let you know?

from python-scripts.

dufferzafar avatar dufferzafar commented on August 25, 2024

We're just trying to fix the bug that destination can't be a child of the source directory (while keeping the rest of the functionality of the script as is) right? because if that's the case I've thought of something. Too lazy to implement it though.

from python-scripts.

kwikadi avatar kwikadi commented on August 25, 2024

Huh. What is it?

from python-scripts.

dufferzafar avatar dufferzafar commented on August 25, 2024

We just store all the directories in source and then walk over every one of them?

children = os.listdir(src_root)

for child in children:
    for cur_dir, dirs, files in os.walk(os.path.join(src_root, child)):
        ... rest of the code same ...

from python-scripts.

dufferzafar avatar dufferzafar commented on August 25, 2024

Now that I've written it, I can see that this is only a partial solution and won't work in all cases.

from python-scripts.

Related Issues (2)

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.