Skip to content

Move special .st* files into a .syncthing directory #1056

Closed

Description

@Zillode

Instead of cluttering the synced folder with .st* files (such as .stfolder, (.stignoreglobal), .stignore and .stversions), we should use a .syncthing folder that allows the storage of all this and future information.
BTSync did a similar conversion some months ago.

Activity

  1. added
    enhancement
    on Dec 1, 2014
  2. calmh commented on Dec 1, 2014

    @calmh
    Member

    Sounds sensible enough

  3. generalmanager commented on Dec 1, 2014

    @generalmanager

    +1

  4. 101100 commented on Dec 1, 2014

    @101100

    Perhaps this should be a per-repo option? I can see both options being useful in different contexts.

    Nevermind, I misunderstood the idea.

  5. generalmanager commented on Dec 1, 2014

    @generalmanager

    I'd like to see those files put into a single folder too. I don't feel that there are enough common usecases where having an option to fall back to the current design would be beneficial to justify the UI bloat added by a per-repo option tough.

  6. calmh commented on Dec 1, 2014

    @calmh
    Member

    In practice, today this would mean a layout like

    folder_root/
        .syncthing/      (hidden)
            versions/    (when enabled)
            ignores.txt  (normal file, no reason to hide)
        ...
        other files
        ...
    

    The .stfolder file is no longer necessary, as it's implied by the existence of the .syncthing directory.

  7. added this to the milestone on Dec 1, 2014
  8. bherila commented on Dec 2, 2014

    @bherila

    The .stfolder file is no longer necessary, as it's implied by the existence of the .syncthing directory.

    Awesome, backwards compatibility too 👍

  9. cbhushan commented on Jan 1, 2015

    @cbhushan

    +1

  10. pirog commented on Feb 18, 2015

    @pirog

    +1

    this would be very helpful for things like git which cannot clone into a non-empty folder

  11. calmh commented on Feb 19, 2015

    @calmh
    Member

    @pirog Whatever that issue is, I don't think this will help...?

  12. pirog commented on Feb 19, 2015

    @pirog

    Yeah I think you're right. Skimmed this too quickly I guess :/

    but seems like either way a synced folder would be non-empty by default either with a hidden dir or some hidden files.

    We are having this issue on the KALABOX project where we are git cloning directly into a synced folder. The clone fails because the die is non-empty. For now we are just moving .stfolder to tmp, cloning and then moving .stfolder back in. This seems like a bad thing to do but seems to be working this far.

    Anyway, ignore this I guess :)

  13. calmh commented on Feb 20, 2015

    @calmh
    Member

    @pirog Yeah, or clone to the dir before letting syncthing know about it... But there's also some ticket about handling read only dirs without creating any crap in them, maybe that fits your use case? I'm kind of hoping at least one side is read only (from the syncthing perspective), or you'll probably corrupt your git directory anyway.

  14. pirog commented on Feb 26, 2015

    @pirog

    We might be a bit on the frontier for ST here then.

    We are building a local dev environment which is kind of in between docker and vagrant so a lot of this stuff happens automatically and needs to be RW both ways.

    About to roll out an alpha so we can get some useable feedback soon!

  15. added a commit that references this issue on Aug 20, 2015
    84f9cb7
  16. 1 remaining item

  17. added 3 commits that reference this issue on Aug 20, 2015
    525e29c
    e7ba5a1
    26bc4ba
  18. added 2 commits that reference this issue on Sep 2, 2015
    0c341b4
    7ca5c7b
  19. modified the milestones: , on Nov 17, 2015
  20. calmh commented on Nov 19, 2015

    @calmh
    Member

    Going to close this, as I think we should instead minimize the amount of special files.

    .stfolder must exist and may as well be what it is today
    .stignore should cease to exist and move into the config

    There should be nothing else.

  21. added a commit that references this issue on Dec 11, 2015
    d9c9093
  22. added
    frozen-due-to-age
    on Jun 16, 2017
  23. locked and limited conversation to collaborators on Jun 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementfrozen-due-to-age

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions