newspeoplefor developersdocumentationdownloads

nFileServer2 Script Interface

nfileserver2:

Super Class:

Subclasses:

C++ Class:

Info

New style fileserver.

Commands:


setassign

Command Input:
s(AssignName), s(Path)
Command Output:
v
Command Description:
Defines an assign with the specified name and links it to the specified path.

getassign

Command Input:
s(AssignName)
Command Output:
s(Path)
Command Description:
Get a path associated with an assign.

manglepath

Command Input:
s(UnmangledPath)
Command Output:
s(MangledPath)
Command Description:
Convert a path with assigns into a native absolute path.

fileexists

Command Input:
s(PathName)
Command Output:
b(Exists)
Command Description:
Return true if file exists. Note: does not work for directories!

createfilenode

Command Input:
s(UniqueName)
Command Output:
o(Filenode)
Command Description:
Create a Nebula2 filenode and return it. A filenode wraps a nFile object into a nRoot node, and offers a script interface. Use a nfilenode object for file access from within MicroTcl, or other script functions which don't have their own file access functions.

copyfile

Command Input:
s(FromName), s(ToName)
Command Output:
b (Success)
Command Description:
Copy a file.

deletefile

Command Input:
s(FileName)
Command Output:
b (Success)
Command Description:
Delete a file.

Copyright © 1999-2005 by the contributing authors. Ideas, requests, problems: Send feedback.