[Scilab-users] Scilab 5.4 createdir

Adrien Vogt-Schilb vogt at centre-cired.fr
Sun Jan 27 13:59:51 CET 2013



guy guys

mkdir does what you want

does not issue a warning when the dir already existed, instead returns a 
status that you can ignore:

-->mkdir foo
  ans  =

     1.

-->mkdir foo
  ans  =

     2.

-->mkdir foo
  ans  =

     2.

-->mkdir "this%µ£¨$^? wont work"
  ans  =

     0.

help mkdir



kind regards







On 27/01/2013 09:23, Sylvestre Ledru wrote:
> On 27/01/2013 06:05, Samuel Gougeon wrote:
>> Hello Rafael,
>>
>> Le 27/01/2013 03:51, Rafael Guerra a écrit :
>>> ../..
>>> In Scilab 5.4 (Windows 7) if one creates a folder with the command:
>>>     status= createdir('D:\OUTPUT');
>>>
>>> and the folder already exists, then a warning message will be issued in
>>> Scilab's Console:
>>>     createdir: Warning: Directory 'D:\OUTPUT' already exists.
>>>
>>> How can one check in Scilab if a directory already exists?
>> with
>> fileinfo("myDir_or_file_with_path")~= [ ]
> isdir("foo") does the work too.
> http://help.scilab.org/isdir
>
>>> How to disable the warning message above?
>
> -->createdir("/tmp")
> createdir : Attention : Le répertoire '/tmp' existe déjà.
>   ans  =
>
>    T
>
> -->warning("off")
>
> -->createdir("/tmp")
>   ans  =
>
>    T
>
> http://help.scilab.org/warning
>
> S
>
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130127/6cc30b21/attachment.htm>


More information about the users mailing list