platform/shared/ruby/dir.c in rhodes-2.0.0.beta11 vs platform/shared/ruby/dir.c in rhodes-2.0.0.rc1
- old
+ new
@@ -1758,12 +1758,19 @@
*/
static VALUE
dir_entries(int argc, VALUE *argv, VALUE io)
{
VALUE dir;
-
+ VALUE res, temp;
dir = dir_open_dir(argc, argv);
- return rb_ensure(rb_Array, dir, dir_close, dir);
+//RHO
+ res = rb_ensure(rb_Array, dir, dir_close, dir);
+#ifdef _WIN32_WCE
+ temp = rb_ary_new3(2, rb_str_new2("."), rb_str_new2(".."));
+ res = rb_ary_concat(temp, res);
+#endif //_WIN32_WCE
+ return res;
+//RHO
}
/*
* call-seq:
* File.fnmatch( pattern, path, [flags] ) => (true or false)