<!--
<!DOCTYPE program SYSTEM "http://www.doc.ic.ac.uk/project/2004/362/g04362341M/DTD/program.dtd">
-->
<program>
	<argument-model>
		<arguments>
			
			<argument>
				<name>Directories-Input</name>
				<help>
					<overview>When on, directories input pipe is available</overview>
				</help>
				<is-compulsary/>
				<bool-argument>
				</bool-argument>
                <!--
				<set-argument>
					<initial>Off</initial>
					<set-values>
						<set-value><name>On</name></set-value>
						<set-value><name>Off</name></set-value>
					</set-values>
				</set-argument>
				-->
			</argument>
			
			<argument>
				<name>Paths</name>
				<help>
					<overview>List of paths</overview>
				</help>
				<is-compulsary/>
				<text-argument>
					<initial>.</initial>
					<is-multiline />
					<is-file-arg />
				</text-argument>
			</argument>
			
		</arguments>
		
		<mappings>
			
			<mapping>
				<conditions>
					<condition>	
						<target>Directories-Input</target>
						<bool-true-condition>
						</bool-true-condition>
                        <!--
						<set-condition>
							<allowed-values>
								<value>On</value>
							</allowed-values>
						</set-condition>
						-->
					</condition>
				</conditions>
				<input-pipes>
					<pipe>
						<name>Directories</name>
						<type>uk.ac.ic.doc.kevlar.core.types.textType.IFilenameType</type>
						<pipe-help>Filename Type - A list of directories to list files of</pipe-help>
					</pipe>
				</input-pipes>
				<output-pipes>
					<pipe>
						<name>Filenames</name>
						<type>uk.ac.ic.doc.kevlar.core.types.textType.IFilenameType</type>
						<pipe-help>Filename Type - The list of files and directories</pipe-help>
					</pipe>
				</output-pipes>
			</mapping>
			
			<mapping>
				<conditions>
				</conditions>
				<input-pipes>
				</input-pipes>
				<output-pipes>
					<pipe>
						<name>Filenames</name>
						<type>uk.ac.ic.doc.kevlar.core.types.textType.IFilenameType</type>
						<pipe-help>Filename Type - The list of files and directories</pipe-help>
					</pipe>
				</output-pipes>
			</mapping>
			
		</mappings>
		
	</argument-model>
	
	<description-model>
		<name>List-Files</name>
		<version>
			<major>1</major>
			<minor>0</minor>
	    </version>
		<description>List the contents of a directory</description>
		<author>Tristan Allwood</author>
		<copyright>
			<name>Kevlar Group</name>
			<year>2004</year>
		</copyright>
		<keywords>
			<keyword>ls</keyword>
			<keyword>list</keyword>
			<keyword>file</keyword>
			<keyword>directory</keyword>
			<keyword>contents</keyword>
		</keywords>
		<program-help></program-help>
	</description-model>
	
	<return-model>
		<return-mappings>
			<return-mapping>
				<value>0</value>
				<message>Worked</message>
				<is-good />
			</return-mapping>
			<return-mapping>
				<value>1</value>
				<message>Unexpected error</message>
			</return-mapping>
			<return-mapping>
				<value>2</value>
				<message>No Output Pipe Connected</message>
			</return-mapping>
		</return-mappings>
	</return-model>
</program>