File functions
Posted by K.S. Bhaskar on 2009-05-09 15:49
Should they be pure M functions, or should they be executed by either calling out to a POSIX API or executing a shell command via the ZSYstem command?
Regards
-- Bhaskar
Regards
-- Bhaskar
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Atmus is powered by Assembla.
1 Comments
By alexwoodhead on 2009-05-09 16:50
- zcoreDirectory
- zcoreFile
The approach taken was a mix of pure M:- ZSEARCH
- Open dev:COMMAND (get directory list from command pipe)
and ZSYSTEM (mkdir, rmdir)The downside of this approach maybe:
- Dependency and security requirements on specific system commands mkdir, rmdir, ls, grep
- Forking a process is probably not the quickest way to get directory listings.
If there was a single POSIX API library that was implemented then execute privilege could be conferred to the one library and access to system utilities could be negated.Against the POSIX lib approach: