2008-03-13 03:48:11 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								USING:  help.markup  help.syntax  io  io.styles  strings  
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								       io.backend io.files.private quotations ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								IN:  io.files  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ARTICLE: "file-streams"  "Reading and writing files" 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"File streams:"  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $subsection <file-reader> }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection <file-writer> }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection <file-appender> }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Utility combinators:"  
						 
					
						
							
								
									
										
										
										
											2008-02-16 17:25:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection with-file-reader }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection with-file-writer }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection with-file-appender }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection file-contents }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-29 02:20:44 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection file-lines } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ARTICLE: "pathnames"  "Pathname manipulation" 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								"Pathname manipulation:"  
						 
					
						
							
								
									
										
										
										
											2007-11-05 00:45:02 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection parent-directory }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $subsection file-name }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection last-path-separator }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-19 20:15:43 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection append-path }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Pathnames relative to Factor's temporary files directory:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection temp-directory }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection temp-file }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"Pathname presentations:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection pathname }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection <pathname> } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ARTICLE: "directories"  "Directories" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"Current and home directories:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection cwd }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection cd }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection with-directory }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection home }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								"Directory listing:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection directory }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection directory* }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"Creating directories:"  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $subsection make-directory }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection make-directories } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								! ARTICLE: "file-types" "File Types"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								!   { $table { +directory+ "" } }  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								! ;  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ARTICLE: "fs-meta"  "File meta-data" 
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-12 17:41:02 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection file-info }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection link-info }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $subsection exists? }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-20 00:29:19 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection directory? } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ARTICLE: "delete-move-copy"  "Deleting, moving, copying files" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"Operations for deleting and copying files come in two forms:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $list
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    { "Words named "  { $snippet { $emphasis "operation"  } "-file"  } " which work on regular files only."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    { "Words named "  { $snippet { $emphasis "operation"  } "-tree"  } " works on directory trees recursively, and also accepts regular files."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"The operations for moving and copying files come in three flavors:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $list
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    { "A word named "  { $snippet { $emphasis "operation"  } } " which takes a source and destination path."  }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    { "A word named "  { $snippet { $emphasis "operation"  } "-into"  } " which takes a source path and destination directory. The destination file will be stored in the destination directory and will have the same file name as the source path."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    { "A word named "  { $snippet { $emphasis "operation"  } "s-into"  } " which takes a sequence of source paths and destination directory."  }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"Since both of the above lists apply to copying files, that this means that there are a total of six variations on copying a file."  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								$nl
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Deleting files:"  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $subsection delete-file }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection delete-directory }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection delete-tree }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"Moving files:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection move-file }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection move-file-into }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection move-files-into }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Copying files:"  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection copy-file }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection copy-file-into }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection copy-files-into }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Copying directory trees recursively:"  
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection copy-tree }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection copy-tree-into }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection copy-trees-into }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"On most operating systems, files can only be moved within the same file system. To move files between file systems, use "  { $link copy-file } " followed by "  { $link delete-file } " on the old name."  ;
  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ARTICLE: "io.files"  "Basic file operations" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								"The "  { $vocab-link "io.files"  } " vocabulary provides basic support for working with files."  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection "pathnames"  }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsection "file-streams"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection "fs-meta"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection "directories"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $subsection "delete-move-copy"  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $see-also "os"  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								ABOUT: "io.files" 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 15:59:15 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  path-separator?  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "ch"  "a code point"  } { "?"  "a boolean"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Tests if the code point is a platform-specific path separator."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $examples
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    "On Unix:" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    { $example "USING: io.files prettyprint ;"  "CHAR: / path-separator? ."  "t"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								} ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  parent-directory  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "parent"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Strips the last component off a pathname."  }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-11 20:51:58 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $examples { $example "USING: io io.files ;"  "\"/etc/passwd\" parent-directory print"  "/etc/"  } } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  file-name  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "string"  string  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs the last component of a pathname string."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $examples
							 
						 
					
						
							
								
									
										
										
										
											2008-03-11 20:51:58 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    { $example "USING: io.files prettyprint ;"  "\"/usr/bin/gcc\" file-name ."  "\"gcc\""  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    { $example "USING: io.files prettyprint ;"  "\"/usr/libexec/awk/\" file-name ."  "\"awk\""  }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								} ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-12 17:41:02 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								! need a $class-description file-info  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  file-info  
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-12 17:41:02 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  { $values { "path"  "a pathname string"  }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								            { "info"  file-info } }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-12 17:41:02 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								  { $description "Queries the file system for meta data. " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                 "If path refers to a symbolic link, it is followed." 
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								                 "If the file does not exist, an exception is thrown."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  { $class-description "File meta data"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  { $table 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								           { "type"  { "One of the following:" 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                      { $list { $link +regular-file+ }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                              { $link +directory+ }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                              { $link +symbolic-link+ } } } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								           { "size"      "Size of the file in bytes"  }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:47:39 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								           { "modified"  "Last modification timestamp."  } }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-12 17:41:02 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								! need a see also to link-info  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  link-info  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  { $values { "path"  "a pathname string"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								            { "info"  "a file-info tuple"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								  { $description "Queries the file system for meta data. " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                 "If path refers to a symbolic link, information about " 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                 "the symbolic link itself is returned." 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								                 "If the file does not exist, an exception is thrown."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								! need a see also to file-info  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 03:43:30 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ file-info link-info } related-words
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								HELP:  <file-reader>  
						 
					
						
							
								
									
										
										
										
											2008-03-11 20:51:58 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  { "stream"  "an input stream"  } }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-16 17:25:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								    { "stream"  "an input stream"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs an input stream for reading from the specified pathname using the given encoding."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file is unreadable."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <file-writer>  
						 
					
						
							
								
									
										
										
										
											2008-02-16 17:25:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  } { "stream"  "an output stream"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs an output stream for writing to the specified pathname using the given encoding. The file's length is truncated to zero."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file cannot be opened for writing."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <file-appender>  
						 
					
						
							
								
									
										
										
										
											2008-02-16 17:25:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  } { "stream"  "an output stream"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs an output stream for writing to the specified pathname using the given encoding. The stream begins writing at the end of the file."  }
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file cannot be opened for writing."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-15 23:20:31 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  with-file-reader  
						 
					
						
							
								
									
										
										
										
											2008-02-16 17:25:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  } { "quot"  "a quotation"  } }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-06 21:04:46 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $description "Opens a file for reading and calls the quotation using "  { $link with-stream } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file is unreadable."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-15 23:20:31 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  with-file-writer  
						 
					
						
							
								
									
										
										
										
											2008-02-16 17:25:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  } { "quot"  "a quotation"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Opens a file for writing using the given encoding and calls the quotation using "  { $link with-stream } "."  }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-06 21:04:46 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file cannot be opened for writing."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  with-file-appender  
						 
					
						
							
								
									
										
										
										
											2008-02-16 17:25:45 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  } { "quot"  "a quotation"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Opens a file for appending using the given encoding and calls the quotation using "  { $link with-stream } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file cannot be opened for writing."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  file-lines  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  } { "seq"  "an array of strings"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Opens the file at the given path using the given encoding, and returns a list of the lines in that file."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file cannot be opened for writing."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  file-contents  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "encoding"  "an encoding descriptor"  } { "str"  "a string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Opens the file at the given path using the given encoding, and the contents of that file as a string."  }
							 
						 
					
						
							
								
									
										
										
										
											2008-02-06 21:04:46 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file cannot be opened for writing."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-05 14:11:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  cwd  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs the current working directory of the Factor process."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Windows CE has no concept of ``current directory'', so this word throws an error there."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-05 14:11:36 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  cd  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Changes the current working directory of the Factor process."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Windows CE has no concept of ``current directory'', so this word throws an error there."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ cd cwd with-directory } related-words
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  with-directory  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "quot"  quotation } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Changes the current working directory for the duration of a quotation's execution."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Windows CE has no concept of ``current directory'', so this word throws an error there."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-19 20:15:43 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  append-path  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								{ $values { "str1"  "a string"  } { "str2"  "a string"  } { "str"  "a string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Concatenates two pathnames."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  exists?  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "?"  "a boolean"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Tests if the file named by "  { $snippet "path"  } " exists."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  directory?  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "?"  "a boolean"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Tests if "  { $snippet "path"  } " names a directory."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  (directory)  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "seq"  "a sequence of "  { $snippet "{ name dir? }"  } " pairs"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs the contents of a directory named by "  { $snippet "path"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $notes "This is a low-level word, and user code should call "  { $link directory } " instead."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  directory  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "seq"  "a sequence of "  { $snippet "{ name dir? }"  } " pairs"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs the contents of a directory named by "  { $snippet "path"  } "."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  directory*  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "seq"  "a sequence of "  { $snippet "{ path dir? }"  } " pairs"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs the contents of a directory named by "  { $snippet "path"  } "."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $notes "Unlike "  { $link directory } ", this word prepends the directory's path to all file names in the list."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-13 06:19:32 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								! HELP: file-modified  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								! { $values { "path" "a pathname string" } { "n" "a non-negative integer or " { $link f } } }  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								! { $description "Outputs a file's last modification time, since midnight January 1, 1970. If the file does not exist, outputs " { $link f } "." } ;  
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  resource-path  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } { "newpath"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Resolve a path relative to the Factor source code location. This first checks if the "  { $link resource-path } " variable is set to a path, and if not, uses the parent directory of the current image."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  pathname  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $class-description "Class of pathname presentations. Path name presentations can be created by calling "  { $link <pathname> } ". Instances can be passed to "  { $link write-object } " to output a clickable pathname."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  normalize-directory  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "str"  "a pathname string"  } { "newstr"  "a new pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Called by the "  { $link directory } " word to prepare a pathname before passing it to the "  { $link (directory) } " primitive."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  normalize-pathname  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "str"  "a pathname string"  } { "newstr"  "a new pathname string"  } }
							 
						 
					
						
							
								
									
										
										
										
											2008-03-20 00:29:19 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $description "Called by words such as "  { $link <file-reader> } " and "  { $link <file-writer> } " to prepare a pathname before passing it to underlying code."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  <pathname>  (  str  --  pathname  )
  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "str"  "a pathname string"  } { "pathname"  pathname } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Creates a new "  { $link pathname } "."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  home  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "dir"  string  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Outputs the user's home directory."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  delete-file  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Deletes a file."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file could not be deleted."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  make-directory  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Creates a directory."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the directory could not be created."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  make-directories  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Creates a directory and any parent directories which do not yet exist."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the directories could not be created."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2007-09-20 18:09:08 -04:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								HELP:  delete-directory  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Deletes a directory. The directory must be empty."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the directory could not be deleted."  } ;
 
							 
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  touch-file  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Updates the modification time of a file or directory. If the file does not exist, creates a new, empty file."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file could not be touched."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  delete-tree  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "path"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Deletes a file or directory, recursing into subdirectories."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the deletion fails."  } 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $warning "Misuse of this word can lead to catastrophic data loss."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  move-file  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "from"  "a pathname string"  } { "to"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Moves or renames a file."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file does not exist or if the move operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  move-file-into  
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "from"  "a pathname string"  } { "to"  "a directory pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Moves a file to another directory without renaming it."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file does not exist or if the move operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  move-files-into  
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "files"  "a sequence of pathname strings"  } { "to"  "a directory pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Moves a set of files to another directory."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file does not exist or if the move operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  copy-file  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "from"  "a pathname string"  } { "to"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Copies a file."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $notes "This operation attempts to preserve the original file's attributes, however not all attributes may be preserved."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file does not exist or if the copy operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  copy-file-into  
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "from"  "a pathname string"  } { "to"  "a directory pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Copies a file to another directory."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file does not exist or if the copy operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  copy-files-into  
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "files"  "a sequence of pathname strings"  } { "to"  "a directory pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Copies a set of files to another directory."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the file does not exist or if the copy operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  copy-tree  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "from"  "a pathname string"  } { "to"  "a pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Copies a directory tree recursively."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $notes "This operation attempts to preserve original file attributes, however not all attributes may be preserved."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the copy operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  copy-tree-into  
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "from"  "a pathname string"  } { "to"  "a directory pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Copies a directory tree to another directory, recursively."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the copy operation fails."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-03-01 03:58:29 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  copy-trees-into  
						 
					
						
							
								
									
										
										
										
											2008-02-27 17:31:13 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $values { "files"  "a sequence of pathname strings"  } { "to"  "a directory pathname string"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Copies a set of directory trees to another directory, recursively."  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $errors "Throws an error if the copy operation fails."  } ;