From 315e4abd7e88c428e78c006ccf2dfdb499911a05 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Thu, 17 Jan 2019 23:39:06 -0500 Subject: mkdir should not be recursive by default (#1530) It should return an error if a file with the given path exists and recursive isn't specified. Because mode is not used on windows and rarely used in unix, it is made to the last parameter. In collaboration with Stefan Dombrowski --- src/msg.fbs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/msg.fbs') diff --git a/src/msg.fbs b/src/msg.fbs index 57f8a7f2c..4b303535f 100644 --- a/src/msg.fbs +++ b/src/msg.fbs @@ -260,14 +260,13 @@ table MakeTempDirRes { table Mkdir { path: string; - mode: uint; - // mode specified by https://godoc.org/os#FileMode + recursive: bool; + mode: uint; // Specified by https://godoc.org/os#FileMode } table Chmod { path: string; - mode: uint; - // mode specified by https://godoc.org/os#FileMode + mode: uint; // Specified by https://godoc.org/os#FileMode } table Remove { -- cgit v1.2.3