• files areas wishes

    From Ragnarok@VERT/DOCKSUD to DOVE-Net.Synchronet_Discussion on Monday, May 26, 2014 05:50:02
    i wish to use a new JS model to get full access to the file areas, avoid
    name length limit and use it as filesystem plus attributes on the files(metadata) (just a example pseudo magical code)


    myLibs = bbs.Libraries;

    myLibs.forEach(function(myLib) {
    print myLib.short_name;
    myLib.setParentDiretory('/tmp/example');
    myDirs = myLib.Directories;
    myDirs.forEach(function(myDir) {
    print myDir.name;
    myDir.setAccessReqs('LEVEL > 10');
    myDir.setUploadReqs('SYSOP');
    myDir.addFile('/tmp/file.txt', {user: 'guest', date: now})
    files = myDir.Files;
    files.forEach(function(file) {
    print file.name;
    print file.dir;
    file.verify()
    });
    });

    });

    methods like:

    // Create/remove dirs from library
    myLib.addDir('new_name', {path: '/sbbs/path' });
    myLib.removeDir('old_dir');

    //remove filename from dir
    myDir.removeFile(filename);

    //Generate filelist file with tempate vars
    myDir.export_list('/tmp/file.lst', '%name %size %upload_by')

    //remove this file
    file.Remove();

    //move to another dir
    file.move(another_dir);

    and rest of properties like
    file.upload_by;
    file.upload_on;
    file.whatever;

    is posibble with the actual Sync source code, implement some of that
    objects?? Libraries, Dirs and Files..

    ---
    þ Synchronet þ Dock Sud BBS TLD 24 HS - http://www.docksud.com.ar - telnet://bbs.docksud.com.ar
  • From Digital Man@VERT to Ragnarok on Monday, June 09, 2014 17:20:45
    Re: files areas wishes
    By: Ragnarok to DOVE-Net.Synchronet_Discussion on Mon May 26 2014 05:50 am

    is posibble with the actual Sync source code, implement some of that objects?? Libraries, Dirs and Files..

    It's possible and on the to-do list.

    digital man

    Synchronet "Real Fact" #32:
    The Synchronet web user interface was contributed by Robert Couture, Runemaster.
    Norco, CA WX: 79.8øF, 48.0% humidity, 21 mph ESE wind, 0.00 inches rain/24hrs

    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ telnet://vert.synchro.net