• Better handling of potential duplicates when importing directories

    From Nigel Reed@VERT to GitLab issue in main/sbbs on Sunday, November 03, 2024 16:23:41
    open https://gitlab.synchro.net/main/sbbs/-/issues/810

    In my filesystem I have

    simtelnet/handheld
    which contains, for example, simtelnet/handheld/adventure

    but there is also
    simtelnet/handheld/handheld/adventure

    This causes scfg to declare

    "Duplicate dir: HANDHELDADVENTUR"

    It would be nice if scfg made an attempt to create a unique directory name rather than failing.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sunday, November 03, 2024 16:26:30
    https://gitlab.synchro.net/main/sbbs/-/issues/810#note_5867

    Can you attach the created dirs.raw file to test with?

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Nigel Reed@VERT to GitLab note in main/sbbs on Sunday, November 03, 2024 16:40:48
    https://gitlab.synchro.net/main/sbbs/-/issues/810#note_5868

    Sure.

    [dirs.raw](/uploads/4918f50d298637ad752899970cebff8a/dirs.raw)

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Sunday, November 03, 2024 18:15:00
    https://gitlab.synchro.net/main/sbbs/-/issues/810#note_5871

    The problem is actually in constructing a meaningful/useful short name (25 chars or less) from those longer paths.
    You don't likely want duplicate short names and SCFG is preventing that.
    SCFG sees that "handheld/handheld/adventure" is > 25 chars long, so it uses "handheld/adventure" instead (for the new dir's short name), but that short name is already taken because "handle/adventure" was already added. Any automated solution by SCFG would include adding gibberish to your user-visible directory short names, and I don't think you'd want that.

    I recommend merging the nested "handheld" directories with the higher level ones of the same name and then removing handheld/handheld/* from the dirs.raw file. This likely was some file management mistake in the first place.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab issue in main/sbbs on Monday, November 04, 2024 17:29:26
    close https://gitlab.synchro.net/main/sbbs/-/issues/810

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net
  • From Rob Swindell@VERT to GitLab note in main/sbbs on Monday, November 04, 2024 17:29:26
    https://gitlab.synchro.net/main/sbbs/-/issues/810#note_5881

    Closing this issue as I don't think there's a real solution needed for the given set of directories that contain repeated nested names.

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net