• Better handling of potential duplicates when importing directories

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Sun Nov 3 16:23:41 2024
    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.
    --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Nov 3 16:26:30 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/810#note_5867

    Can you attach the created dirs.raw file to test with?
    --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Sun Nov 3 16:40:48 2024
    https://gitlab.synchro.net/main/sbbs/-/issues/810#note_5868

    Sure.

    [dirs.raw](/uploads/4918f50d298637ad752899970cebff8a/dirs.raw)
    --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Sun Nov 3 18:15:00 2024
    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.
    --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Mon Nov 4 17:29:26 2024
    close https://gitlab.synchro.net/main/sbbs/-/issues/810
    --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Mon Nov 4 17:29:26 2024
    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.
    --- SBBSecho 3.21-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)