CreateDirectory Method
The CreateDirectory method creates a directory.
This method has the following syntax:
integer = SessionObject.CreateDirectory(directory = varchar(256))
This method has the following parameter:
directory
Specifies the directory to create
The method returns TRUE for success or FALSE for failure.
The path specification must be appropriate for the operating system. The following example shows how to write an application that runs on both Windows and UNIX systems:
declare
dir = varchar(100) not null;
os = integer not null;
ret = integer not null;
enddeclare
{
os = CurSession.OperatingSystem;
if (os = SY_UNIX) then
dir = '/ingres/files/newdir';
else
dir = 'c:\ingres\files\newdir';
endif;
ret = CurSession.CreateDirectory(directory = dir);
...
}
Last modified date: 12/20/2023