• Create data/xxxx file for users

    From Nigel Reed@1:103/705 to GitLab issue in main/sbbs on Mon Apr 17 23:51:16 2023
    open https://gitlab.synchro.net/main/sbbs/-/issues/552

    There are times when I want to store files that belong to the user that I want to keep between sessions but the application works easier if you specify a directory for the files rather than having to name every individual file.This would allow me to store files in /sbbs/data/user/0001/filewhatever.txtThen, if and when a user account is deleted, the /sbbs/data/user/xxxx directory is removed along with any xxxx files. Others could then use that directory so /sbbs/data/user doesn't get filled will thousands of files.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab issue in main/sbbs on Tue Apr 18 00:32:50 2023
    close https://gitlab.synchro.net/main/sbbs/-/issues/552
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Nigel Reed@1:103/705 to GitLab note in main/sbbs on Tue Apr 18 01:09:35 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/552#note_3492

    That says if it exists, which means i have to check for the directory every time, i cannot assume it's there. I'm saying create it by default so I'll know it's always there, or should be.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)
  • From Rob Swindell@1:103/705 to GitLab note in main/sbbs on Tue Apr 18 11:43:02 2023
    https://gitlab.synchro.net/main/sbbs/-/issues/552#note_3495

    You "have to check for the directory every time" you do what? The thing that creates a file in that directory can/should create the directory itself. No checking is needed, just call mkdir() before creating files in the directory. There's not a lot of point to having SBBS create tons of (typically) empty directories when they can just be created when needed very easily.
    --- SBBSecho 3.20-Linux
    * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705)