The createNewFile() methods generate a new file with the path name of the RecordFile object using the specified access parameters or the default parameters of the specified access method.
Special features of the DMS file system
When a file is generated, it is opened exclusively and then closed. Any shared update option set in the access parameters is ignored. The shared update option does not
takes effect until the file is opened for processing.
The static methods createTempFile() provide the option of creating temporary files using the specified access parameters. A temporary file has a generated name which definitely does not already exist in the file system. The file is either created in the specified directory or, if no directory was specified, in a file-system-specific directory. The file is not automatically deleted; the user must call the deleteOnExit() method if the file is to be deleted when the application is terminated. The name is formed from the user’s prefix and suffix specifications and a string generated on a file-system-specific basis.
Special features of the DMS file system
No temporary files in the usual DMS sense are generated, but always permanent files which users must delete themselves. The file-system-specific directory always refers to the default catalog ID of the calling user. The directory parameter can be used in the DMS file system to generate temporary files on a different catalog ID from the default catalog ID.
When a temporary file is generated, it is opened exclusively and then closed. Any shared update option set in the access parameters is ignored. The shared update option does not take effect until the file is opened for processing.
The mkdir() method creates a directory with the name of this object in the associated file system.
Special features of the DMS file system
No directories can be created.
The mkdirs() method creates a directory including all the necessary parent directories in the associated file system.
Special features of the DMS file system
No directories can be created.