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