Download openFT-Script
Transcript
14. September 2012 Stand 12:55.06 Pfad: P:\FTS-BS\openSEAS\openFT\openFT-V12_1200300\1200306_UW_FT-Script\en\ftscript_e.k04 openFT-Script statements deleteFile 4.7 deleteFile You use deleteFile to delete a file. If you do not specify a partner then the file is deleted under the local user ID. The name of the file that is to be deleted consists of the directory name specified with directory (see section “directory” on page 61) and the name specified with the filenames attribute. If you want to delete all the files in a directory, you should use listDirectory (see section “listDirectory” on page 79) together with foreach (see section “foreach” on page 73). The length of the file name (length of directory plus length of filenames) is limited and depends on the openFT version. The length is the number of characters plus 1 character if directory does not end with a "/" i You should note the response on a restart (see section “Restart” on page 25). Format <deleteFile ref?="ID" faultIfNotExists?="yes|no" filenames > comment? context? partner? directory? </deleteFile> Dokuschablonen 19x24 Version 7.4us für FrameMaker V7.x vom 09.02.2010 © cognitas GmbH 2001-2010 Attributes Name Value Meaning ref? string Reference to a file context object faultIfNotExists? yes | no The default value is no. If the file does not exist then this is not considered to be an error and Ftscript processing is continued. If yes is specified then the Ftscript request is aborted with ft_notExists if the file does not exist. On a restart (see section “Restart” on page 25), the Ftscript request is aborted with ft_recoveryFailed. This may also occur if the instance is switched. filenames See section “File name attributes” on page 20. openFT V12.0 - openFT-Script Interface 59