Added complete call-seq documentation for directory operations across both mrblib/dir.rb (7 Ruby methods) and src/dir.c (12 C methods): ## Ruby Methods (mrblib/dir.rb): - Dir instance methods: each, each_child for directory iteration with enumerator support when no block given - Dir class methods: entries, children for getting directory contents as arrays, foreach for iteration, open for directory access with optional block handling, chdir for changing working directory with optional block for temporary changes ## C Methods (src/dir.c): - Dir class methods: delete for removing directories, exist? for checking directory existence, getwd/pwd for current directory, mkdir for creating directories with optional permissions, chroot for changing filesystem root, empty? for checking if directory is empty - Dir instance methods: new for creating directory objects, close for closing directory streams, read for reading directory entries, rewind for repositioning to beginning, seek/tell/pos for directory positioning Co-authored-by: Atlassian Rovo Dev
mruby-dir
Dir class for mruby. Supported methods are:
.chdir
.delete
.entries
.exist?
.foreach
.getwd
.mkdir
.open
#close
#each
#read
#rewind
#seek
#tell
License
Copyright (c) 2012 Internet Initiative Japan Inc.
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
On Windows platforms, you must agree on additional license too:
Copyright Kevlin Henney, 1997, 2003, 2012. All rights reserved.
Permission to use, copy, modify, and distribute this software and its documentation for any purpose is hereby granted without fee, provided that this copyright and permissions notice appear in all copies and derivatives.
This software is supplied "as is" without express or implied warranty.
But that said, if there are any problems please get in touch.