FS DELETE: Difference between revisions
Appearance
Created page with "Removes a directory entry associated with a filename. ==Syntax== FS_DELETE(pcdfsi, pcdfsd, pFile, iCurDirEnd) ==Parameters== ;pcdfsi :Is a pointer to the file-system-inde..." |
mNo edit summary |
||
Line 1: | Line 1: | ||
Removes a directory entry associated with a filename. | {{DISPLAYTITLE:FS_DELETE}} | ||
Removes a directory entry associated with a filename. | |||
==Syntax== | ==Syntax== | ||
FS_DELETE(pcdfsi, pcdfsd, pFile, iCurDirEnd) | FS_DELETE(pcdfsi, pcdfsd, pFile, iCurDirEnd) | ||
==Parameters== | ==Parameters== | ||
;pcdfsi | ;pcdfsi:Is a pointer to the file-system-independent working directory structure. | ||
:Is a pointer to the file-system-independent working directory structure. | ;pcdfsd:Is a pointer to the file-system-dependent working directory structure. | ||
;pFile:Is a pointer to the ASCIIZ name of the file or directory. The FSD does not need to validate this pointer. | |||
;pcdfsd | ;iCurDirEnd:Is the index of the end of the current directory in pFile. | ||
:Is a pointer to the file-system-dependent working directory structure . | :This is used to optimize FSD path processing. If iCurDirEnd == -1, there is no current directory relevant to the name text, that is, a device. | ||
;pFile | |||
:Is a pointer to the ASCIIZ name of the file or directory. The FSD does not need to validate this pointer. | |||
;iCurDirEnd | |||
:Is the index of the end of the current directory in pFile. | |||
==Calling Sequence== | |||
== | |||
<PRE> | <PRE> | ||
int far pascal FS_DELETE(pcdfsi, pcdfsd, pFile, iCurDirEnd) | int far pascal FS_DELETE(pcdfsi, pcdfsd, pFile, iCurDirEnd) | ||
Line 27: | Line 21: | ||
unsigned short iCurDirEnd; | unsigned short iCurDirEnd; | ||
</PRE> | </PRE> | ||
==Remarks== | ==Remarks== | ||
The files specified are deleted. | The files specified are deleted. | ||
The deletion of a file opened in DOS mode by the same process requesting the delete is supported. OS/2 calls FS_CLOSE for the file before calling FS_DELETE . | The deletion of a file opened in DOS mode by the same process requesting the delete is supported. OS/2 calls FS_CLOSE for the file before calling FS_DELETE. | ||
The file name may not contain wildcard characters. | The file name may not contain wildcard characters. | ||
[[Category:IFS Interfaces]] | [[Category:IFS Interfaces]] | ||
Latest revision as of 01:38, 9 February 2020
Removes a directory entry associated with a filename.
Syntax
FS_DELETE(pcdfsi, pcdfsd, pFile, iCurDirEnd)
Parameters
- pcdfsi
- Is a pointer to the file-system-independent working directory structure.
- pcdfsd
- Is a pointer to the file-system-dependent working directory structure.
- pFile
- Is a pointer to the ASCIIZ name of the file or directory. The FSD does not need to validate this pointer.
- iCurDirEnd
- Is the index of the end of the current directory in pFile.
- This is used to optimize FSD path processing. If iCurDirEnd == -1, there is no current directory relevant to the name text, that is, a device.
Calling Sequence
int far pascal FS_DELETE(pcdfsi, pcdfsd, pFile, iCurDirEnd) struct cdfsi far * pcdfsi; struct cdfsd far * pcdfsd; char far * pFile; unsigned short iCurDirEnd;
Remarks
The files specified are deleted.
The deletion of a file opened in DOS mode by the same process requesting the delete is supported. OS/2 calls FS_CLOSE for the file before calling FS_DELETE.
The file name may not contain wildcard characters.