2008-12-18 19:32:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								USING:  help.markup  help.syntax  io.files.info  math  ;
  
						 
					
						
							
								
									
										
										
										
											2008-12-14 21:03:00 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								IN:  io.files.links  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  make-link  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "target"  "a path to the symbolic link's target"  } { "symlink"  "a path to new symbolic link"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Creates a symbolic link."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2009-04-28 23:51:35 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  make-hard-link  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "target"  "a path to the hard link's target"  } { "link"  "a path to new symbolic link"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Creates a hard link."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-12-14 21:03:00 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								HELP:  read-link  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "symlink"  "a path to an existing symbolic link"  } { "path"  "the path pointed to by the symbolic link"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Reads the symbolic link and returns its target path."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  copy-link  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values { "target"  "a path to an existing symlink"  } { "symlink"  "a path to a new symbolic link"  } }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Copies a symbolic link without following the link."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-12-18 19:32:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  follow-link  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     { "path"  "a pathname string"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     { "path'"  "a pathname string"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Returns an absolute path from "  { $link read-link } "."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  follow-links  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     { "path"  "a pathname string"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     { "path'"  "a pathname string"  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "Follows a chain of symlinks up to "  { $link symlink-depth } "."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-12-18 19:42:05 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ read-link follow-link follow-links } related-words
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-12-18 19:32:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								HELP:  symlink-depth  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     { "value"  integer  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "The number of redirections "  { $link follow-links } " will follow."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								HELP:  too-many-symlinks  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $values
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								     { "path"  "a pathname string"  } { "n"  integer  }
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $description "An error thrown when the number of redirections in a chain of symlinks surpasses the value in the "  { $link symlink-depth } " variable."  } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
									
										
										
										
											2008-12-14 21:03:00 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								ARTICLE: "io.files.links"  "Symbolic links" 
							 
						 
					
						
							
								
									
										
										
										
											2008-12-18 19:32:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Reading links:"  
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsections
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    read-link
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    follow-link
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								    follow-links
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								}
							 
						 
					
						
							
								
									
										
										
										
											2008-12-18 19:32:00 -05:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								"Creating links:"  
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsections make-link }
							 
						 
					
						
							
								
									
										
										
										
											2008-12-14 21:03:00 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								"Copying links:"  
						 
					
						
							
								
									
										
										
										
											2009-10-01 15:56:36 -04:00 
										
									 
								 
							 
							
								
									
										 
								
							 
							
								 
							
							
								{ $subsections copy-link }
							 
						 
					
						
							
								
									
										
										
										
											2008-12-14 21:03:00 -05:00 
										
									 
								 
							 
							
								
							 
							
								 
							
							
								"Not all operating systems support symbolic links."  
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								{ $see-also link-info } ;
 
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								
							 
						 
					
						
							
								
							 
							
								
							 
							
								 
							
							
								ABOUT: "io.files.links"