Mercurial > hg > Members > kono > nitros9-code
view docs/nitros9guide/deldir.refentry @ 3295:6b7a7b233925 default tip
makefile: Allow PORTS with level1/2 mix
https://sourceforge.net/p/nitros9/feature-requests/10/
author | Tormod Volden <debian.tormod@gmail.com> |
---|---|
date | Tue, 19 Apr 2022 18:12:17 +0200 |
parents | b00cf13c9f61 |
children |
line wrap: on
line source
<refentry id="deldir"> <refnamediv> <refname>DELDIR</refname> <refpurpose>Delete All Files In a Directory System</refpurpose> </refnamediv> <refsynopsisdiv> <cmdsynopsis> <command>deldir</command> <arg choice="plain"> <replaceable>directory name</replaceable> </arg> </cmdsynopsis> </refsynopsisdiv> <refsect1><title>Description</title> <para> This command is a convenient alternative to manually deleting directories and files they contain. It is only used when <emphasis>all</emphasis> files in the directory system are to be deleted. </para> <para> When <command>deldir</command> is run, it prints a prompt message like this: </para> <screen> OS9: deldir OLDFILES Deleting directory file. List directory, delete directory, or quit ? (l/d/q) </screen> <para> An "l" response will cause a <command>dir -e</command> command to be run so you can have an opportunity to see the files in the directory before they are deleted. </para> <para> A "d" response will initiate the process of deleting files. </para> <para> A "q" response will abort the command before action is taken. </para> <para> The directory to be deleted may include directory files, which may themselves include directory files, etc. In this case, <command>deldir</command> operates recursively (e.g., it calls itself) so all lower-level directories are deleted as well. In this case the lower-level directories are processed first. </para> <para> You must have correct access permission to delete all files and directories encountered. If not, <command>deldir</command> will abort upon encountering the first file for which you do not have write permission. </para> <para> The <command>deldir</command> command automatically calls the DIR and ATTR commands, so they both must reside in the current execution directory. </para> </refsect1> </refentry>