You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#!python
for f1 in self._dcmp.common:
try:
st = os.stat(os.path.join(self._dir1, f1))
except os.error:
continue
if stat.S_ISREG(st.st_mode):
if updatefunc:
updatefunc(f1, self._dir1, self._dir2)
Can you explain what is happening when this code is used: It doesn't feels efficient (Line:258)
And a bit later: Line:375
To be 100% honest, as of today, no I can't explain. I'm not even sure I wrote that part! This code comes from an old script I tweaked to my needs, and I never bothered about optimizing it. My only concern was fitness for purpose and a few added features from the original script. If you find more efficient ways to achieve the same end results, I'll be happy to approve your changes if you want to initiate a pull request.
FYI I've added threading for left and right
Great, if all the tests pass with that modification and you don't notice any regression bug you're more than welcome to submit a pull request!
Original report by Marc Otten (Bitbucket: marcuzzz, GitHub: marcuzzz).
Hi,
I'm playing with you dirsync and it's working great.
There is one part I don't understand:
Can you explain what is happening when this code is used:
It doesn't feels efficient.
Line:258
And a bit later:
Line:375
FYI
I've added threading for left and right:
The text was updated successfully, but these errors were encountered: