• Moving files between Filebases

    From Nightfox@VERT/DIGDIST to Digital Man on Tuesday, February 01, 2022 19:19:08
    Re: Moving files between Filebases
    By: Digital Man to Nightfox on Tue Feb 01 2022 07:15 pm

    1. Get the file's metadata object using FileBase.get(filename,

    2. Remove the file from the FileBase using
    FileBase.remove(filename, false)

    3. Move the file to the other filebase directory, open that
    filebase, and use FileBase.Add(meta-data object)

    I think that would be useful to have. As I've been working on my file
    lister, I've implemented a sysop action to move a file from one
    FileBase to another and have implemented it as above for now.

    Does that action work as expected (save for those 3 'stats' properties)?

    Yes, it does appear to work as expected.


    Synchronet Digital Distortion: digitaldistortionbbs.com