GithubHelp home page GithubHelp logo

Comments (7)

jcalonso avatar jcalonso commented on June 16, 2024 2

Yeah a warn would be great, and avoid stopping the syncing. 👍

Btw, the release from last week was amazing, it fixed my previous problems with encoding and the 'progress bar' is great! Good job guys!

from b2_command_line_tool.

ppolewicz avatar ppolewicz commented on June 16, 2024 1

My pleasure!

from b2_command_line_tool.

bwbeach avatar bwbeach commented on June 16, 2024

What should sync do with symlinks?

Right now it's following the symlink. Which seems reasonable to me. What should it do with a broken symlink? Would a nice error message solve the problem?

from b2_command_line_tool.

simongreen-net avatar simongreen-net commented on June 16, 2024

I'd prefer a --no-sync-symlink option (or something similar), but a warn option is good enough.

I use encfs before sending data offsite, so some symlinks don't exist.

from b2_command_line_tool.

Telofy avatar Telofy commented on June 16, 2024

Permission denied errors have similar effects, i.e., also break off the sync. Something like this would be really cool:

diff --git a/b2/sync/folder.py b/b2/sync/folder.py
index 52af481..cb25e34 100644
--- a/b2/sync/folder.py
+++ b/b2/sync/folder.py
@@ -122,7 +122,7 @@ class LocalFolder(AbstractFolder):
             full_path = os.path.join(dir_path, name)
             relative_path = full_path[prefix_len:]
             # Skip broken symlinks or other inaccessible files
-            if not os.path.exists(full_path):
+            if not os.path.exists(full_path) or not os.access(full_path, os.R_OK):
                 if reporter is not None:
                     reporter.local_access_error(full_path)
             else:

from b2_command_line_tool.

ppolewicz avatar ppolewicz commented on June 16, 2024

Reporter should be extended to handle permission errors. Thanks for the suggestion.

from b2_command_line_tool.

Telofy avatar Telofy commented on June 16, 2024

Wow, thank you!

from b2_command_line_tool.

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.