summaryrefslogtreecommitdiff
path: root/2.3-1/macros/GeneralFunctions/SCI2CCreateDir.sci
blob: dcc39c3ea617f4148cf674c031cef93212e1cbba (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
function SCI2CCreateDir(OutDir)
// function SCI2CCreateDir(OutDir)
// -----------------------------------------------------------------
// Create the dir OutDir.
//
// Input data:
// OutDir: full path (absolute or relative) of the directory to be created.
//
// Output data:
// ---
//
// Status:
// 25-Jun-2007 -- Raffaele Nutricato: Author.
//
// Copyright 2007 Raffaele Nutricato.
// Contact: raffaele.nutricato@tiscali.it
// -----------------------------------------------------------------

// ------------------------------
// --- Check input arguments. ---
// ------------------------------
SCI2CNInArgCheck(argn(2),1,1);

[tmppath,tmpfname,tmpextension]=fileparts(OutDir)  ;

status_dir = mkdir(tmppath,tmpfname+tmpextension) ;
if (status_dir == 0)
   error(9999, 'Cannot create: '+OutDir);
end

endfunction