Comments (6)
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.
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.
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.
Huh. What is it?
from python-scripts.
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.
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
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 python-scripts.