DelphiBasics
  Home  |  Delphi .net Home  |  System.IO NameSpace
 .NET Framework
 Namespace References

 System
 System.Collections
 System.Globalization
 System.IO
 
  BinaryReader  Class 
  BinaryWriter  Class 
  BufferedStream  Class 
  Directory  Class 
  DirectoryInfo  Class 
  File  Class 
  FileAccess  Enumeration 
  FileAttributes  Enumeration 
  FileInfo  Class 
  FileMode  Enumeration 
  FileShare  Enumeration 
  FileStream  Class 
  FileSystemWatcher  Class 
  MemoryStream  Class 
  Path  Class 
  SeekOrigin  Enumeration 
  StreamReader  Class 
  StreamWriter  Class 
  StringReader  Class 
  StringWriter  Class 

 Articles and Tutorials

 Overview of .NET
 Delphi and .NET
 Winform Applications
 ASP .Net Applications
 ASP Web Services
 Framework Collections
 Framework String Handling
 Framework Files and Folders

 Author links

 Buy Website Traffic at
 Buywebsitetrafficexperts.com

 Buy Proxies at
 Buyproxies.io
 

 
 
  System.IO.DirectoryInfo Class
 
 Description
Calling writeTextBlock A DirectoryInfo object is created when you want to perform a number of operations for a given Directory or File. Use Directory if you only want to perform one such operation.
 
When you construct a DirectoryInfo instance, the specified Directory Path is only checked for path naming syntax - no check is made to see if the path exists. This is partly because this class allows the directory to be created (using the rather unfortunately named Create method - it should really have been named CreateDirectory as it is in the Directory class). After writeTextBlock
 Syntax
Constructor Create ( DirectoryPathString : String );
 Methods
Create  Creates a new Directory or nest of Directories for the current Directory Path
CreateSubDirectory  Creates a SubDirectory (folder) within the current directory
Delete  Delete the directory (folder) and optionally its sub-directories
GetDirectories  Gets the Directories (folders) in the specified Directory
GetFiles  Gets the files in the specified Directory
GetFileSystemInfos  Gets information for files in the current Directory
MoveTo  Moves a Directory (folder) to a new location
ToString  Returns the current Directory path is returned as a string

 Properties
Attributes  FileAttributes  Gets or sets the FileAttributes of the current FileSystemInfo.
CreationTime  DateTime  Gets or sets the creation time of the current FileSystemInfo object.
CreationTimeUtc  DateTime  Gets or sets the creation time, in coordinated universal time (UTC), of the current FileSystemInfo object.
Exists  Boolean  True of the Directory exists
Extension  String  Gets the string representing the extension part of the file.
FullName  String  Gets the full path of the directory or file.
LastAccessTime  DateTime  Gets or sets the time the current file or directory was last accessed.
LastAccessTimeUtc  DateTime  Gets or sets the time, in coordinated universal time (UTC), that the current file or directory was last accessed.
LastWriteTime  DateTime  Gets or sets the time when the current file or directory was last written to.
LastWriteTimeUtc  DateTime  Gets or sets the time, in coordinated universal time (UTC), when the current file or directory was last written to.
Name  String  Gets the name of this DirectoryInfo instance.
Parent  String  Gets the parent directory of a specified subdirectory.
Root  String  Gets the root portion of a path.

 Delphi Basics links
 
System.DateTime
System.IO.FileAttributes

 Microsoft MSDN links
 
System.IO
System.IO.DirectoryInfo
 
Delphi Programming Neil Moffatt 2002 - 2016. All rights reserved.  |  Home Page