[Scilab-users] Scilab 5.4 createdir
    Sylvestre Ledru 
    sylvestre.ledru at scilab-enterprises.com
       
    Sun Jan 27 09:23:44 CET 2013
    
    
  
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
    
    
More information about the users
mailing list