File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -284,14 +284,14 @@ class Dir
284
284
# Dir.mkdir("testdir")
285
285
# Dir.exists?("testdir") # => true
286
286
# ```
287
- def self.mkdir (path : Path | String , mode = 0o777 ) : Nil
287
+ def self.mkdir (path : Path | String , mode : Int32 = 0o777 ) : Nil
288
288
Crystal ::System ::Dir .create(path.to_s, mode)
289
289
end
290
290
291
291
# Creates a new directory at the given path, including any non-existing
292
292
# intermediate directories. The linux-style permission mode can be specified,
293
293
# with a default of 777 (0o777).
294
- def self.mkdir_p (path : Path | String , mode = 0o777 ) : Nil
294
+ def self.mkdir_p (path : Path | String , mode : Int32 = 0o777 ) : Nil
295
295
return if Dir .exists?(path)
296
296
297
297
path = Path .new path
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ class Dir
64
64
# equivalent to
65
65
# `match: File::MatchOptions.glob_default | File::MatchOptions::DotFiles`.
66
66
@[Deprecated (" Use the overload with a `match` parameter instead" )]
67
- def self.glob (* patterns : Path | String , match_hidden, follow_symlinks = false ) : Array (String )
67
+ def self.glob (* patterns : Path | String , match_hidden : Bool , follow_symlinks : Bool = false ) : Array (String )
68
68
glob(patterns, match: match_hidden_to_options(match_hidden), follow_symlinks: follow_symlinks)
69
69
end
70
70
You can’t perform that action at this time.
0 commit comments