Differences

This shows you the differences between two versions of the page.

Link to this comparison view

ada.directories [2012/02/01 10:28]
thomaslocke [Base_Name]
ada.directories [2012/02/01 10:31] (current)
thomaslocke [Start_Search]
Line 853: Line 853:
 //Compose// is quite handy when building string paths to a file. It's a far stretch better than just concatenating the strings yourself. //Compose// is quite handy when building string paths to a file. It's a far stretch better than just concatenating the strings yourself.
  
-[[Ada.Directories.Compose|Example Source]]+[[Ada.Directories.Compose|Ada.Directories.Compose ​Example Source]]
  
 ===== File and directory queries ===== ===== File and directory queries =====
Line 901: Line 901:
 As can be seen, the current default directory is taken into account if a relative path is given and //​Name_Error//​ is raised when the given //Name// is invalid as either a file or a directory, as is the case with the empty string in the above example. Other than that, there'​s not much to say about this function. As can be seen, the current default directory is taken into account if a relative path is given and //​Name_Error//​ is raised when the given //Name// is invalid as either a file or a directory, as is the case with the empty string in the above example. Other than that, there'​s not much to say about this function.
  
-[[Ada.Directories.Exists|Example Source]]+[[Ada.Directories.Exists|Ada.Directories.Exists ​Example Source]]
  
 ==== Kind ==== ==== Kind ====
Line 945: Line 945:
 //Kind// honors the current default directory, just as all the other functions and procedures of //​Ada.Directories//​. //​Name_Error//​ is raised if the given //Name// parameter is invalid. //Kind// honors the current default directory, just as all the other functions and procedures of //​Ada.Directories//​. //​Name_Error//​ is raised if the given //Name// parameter is invalid.
  
-[[Ada.Directories.Kind|Example Source]]+[[Ada.Directories.Kind|Ada.Directories.Kind ​Example Source]]
  
 ==== Size ==== ==== Size ====
Line 975: Line 975:
 The usual //​Name_Error//​ exception applies to //Size// and you will also find a //​Constraint_Error//​ if the file size is not of type //​File_Size//,​ ie. it is either lower than 0 or higher than //​Long_Long_Integer'​Last//​. The usual //​Name_Error//​ exception applies to //Size// and you will also find a //​Constraint_Error//​ if the file size is not of type //​File_Size//,​ ie. it is either lower than 0 or higher than //​Long_Long_Integer'​Last//​.
  
-[[Ada.Directories.Size|Example Source]]+[[Ada.Directories.Size|Ada.Directories.Size ​Example Source]]
  
 ==== Modification_Time ==== ==== Modification_Time ====
Line 1010: Line 1010:
 The usual //​Name_Error//​ is raised if the file is invalid and a //​Use_Error//​ is raised if the environment doesn'​t support the notion of modification time on a file. The usual //​Name_Error//​ is raised if the file is invalid and a //​Use_Error//​ is raised if the environment doesn'​t support the notion of modification time on a file.
  
-[[Ada.Directories.Modification_Time|Example Source]]+[[Ada.Directories.Modification_Time|Ada.Directories.Modification_Time ​Example Source]]
  
 ===== Directory Searching ===== ===== Directory Searching =====
Line 1211: Line 1211:
 The //Search// procedure accepts almost the same parameters as //​Start_Search//,​ except that we have //Process// instead of //Search//. //Process// is of course access to the subprogram that is to handle each item returned by the search. This subprogram must accept one parameter: //Item : in Directory_Entry_Type//​. The //Search// procedure accepts almost the same parameters as //​Start_Search//,​ except that we have //Process// instead of //Search//. //Process// is of course access to the subprogram that is to handle each item returned by the search. This subprogram must accept one parameter: //Item : in Directory_Entry_Type//​.
  
-[[Ada.Directories.Start_Search|Example Source]]+[[Ada.Directories.Start_Search|Ada.Directories.Start_Search ​Example Source]]
  
 ==== End_Search ==== ==== End_Search ====

Navigation