Subj : Moving files between Filebases
To : Digital Man
From : Nightfox
Date : Tue Feb 01 2022 07:19 pm
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,
> >>> FileBase.DETAIL.EXTENDED)
> >>> 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.
DM> Does that action work as expected (save for those 3 'stats' properties)?
Yes, it does appear to work as expected.
Nightfox
---
� Synchronet � Digital Distortion: digitaldistortionbbs.com