3 ms·
>>> You mention arguments. In PHP, for example, you have `mkdir`, and `rmdir`, and all that. You supply the file or directory string as the first argument, and
by inportb 15y ago
>>> You mention arguments. In PHP, for example, you have `mkdir`, and `rmdir`, and all that. You supply the file or directory string as the first argument, and a limited subset of options as the rest.
http://linux.die.net/man/2/mkdir http://linux.die.net/man/2/mkdir
http://php.net/manual/en/function.mkdir.php http://php.net/manual/en/function.mkdir.php
... they look similar enough to me. The PHP function has some additional tricks, such as creating all parent directories up to the specified path.
http://linux.die.net/man/2/rmdir http://linux.die.net/man/2/rmdir
http://php.net/manual/en/function.rmdir.php http://php.net/manual/en/function.rmdir.php
In this case, the POSIX/C function accepts only one argument. So does PHP, for common usage.
>>> In Unix you have `mkdir`, but you supply the flags before the name of the directory to create.
I think you might be confusing the programs mkdir and rmdir (which don't care much about argument order) with the functions mkdir and rmdir (which, similar to filer.js functions, are part of the API).