Delphi 的目录操作

贴在这里,备查:


System.ChDir


Changes the current directory.


System.IOUtils.TDirectory.Copy


Copies a directory and its contents.


System.SysUtils.CreateDir


Creates a new directory.


System.IOUtils.TDirectory.CreateDirectory


Creates a new directory at the given path.


System.IOUtils.TDirectory.Delete


Deletes a directory at the given path.


System.SysUtils.DirectoryExists


Determines whether a specified directory exists.


System.SysUtils.DiskFree


Returns the number of free bytes on a specified drive.


System.SysUtils.DiskSize


Returns the size, in bytes, of a specified drive.


System.IOUtils.TDirectory.Exists


Checks whether a given directory exists.


System.SysUtils.FileSearch


Searches a specified directory path for a file.


System.SysUtils.FindClose


Releases memory allocated by FindFirst.


System.SysUtils.FindFirst


Searches for the first instance of a file name with a given set of attributes in a specified directory.


System.SysUtils.FindNext


Returns the next entry matching the name and attributes specified in a previous call to FindFirst.


System.SysUtils.ForceDirectories


Creates a new directory, including the creation of parent directories as needed.


System.IOUtils.TDirectory.GetAttributes


Returns the directory attributes.


System.IOUtils.TDirectory.GetCreationTime


Returns the creation time of a directory.


System.IOUtils.TDirectory.GetCreationTimeUtc


Returns the creation time of a directory in UTC (Coordinated Universal Time) time zone.


System.SysUtils.GetCurrentDir


Returns the name of the current directory.


System.IOUtils.TDirectory.GetCurrentDirectory


Returns the current working directory.


System.GetDir


Returns the current directory.


System.IOUtils.TDirectory.GetDirectories


Returns a list of subdirectories in a given directory.


System.IOUtils.TDirectory.GetDirectoryRoot


Returns the root directory for a given path.


System.IOUtils.TDirectory.GetFiles


Returns a list of files in a given directory.


System.IOUtils.TDirectory.GetFileSystemEntries


Returns a list of files and subdirectories in a given directory.


System.IOUtils.TDirectory.GetLastAccessTime


Returns the last access time of a directory.


System.IOUtils.TDirectory.GetLastAccessTimeUtc


Returns the last access time of a directory in UTC (Coordinated Universal Time) time zone.


System.IOUtils.TDirectory.GetLastWriteTime


Returns the last write time of a directory.


System.IOUtils.TDirectory.GetLastWriteTimeUtc


Returns the last write time of a directory in UTC (Coordinated Universal Time) time zone.


System.IOUtils.TDirectory.GetLogicalDrives


Returns a list of all logical drives present on this computer.


System.IOUtils.TDirectory.GetParent


Returns the parent directory of another directory.


System.IOResult


Returns the status of the last I/O operation performed.


System.IOUtils.TDirectory.IsEmpty


Checks whether a given directory is empty.


System.IOUtils.TDirectory.IsRelativePath


IsRelativePath indicates whether the specified path is a relative path.


System.MkDir


Creates a new subdirectory.


System.IOUtils.TDirectory.Move


Moves or renames a directory and its contents.


System.SysUtils.RemoveDir


Deletes an existing empty directory.


System.RmDir


Deletes an empty subdirectory.


System.IOUtils.TDirectory.SetAttributes


Sets the directory attributes.


System.IOUtils.TDirectory.SetCreationTime


Changes the creation time of a directory.


System.IOUtils.TDirectory.SetCreationTimeUtc


Changes the creation time of a directory.


System.SysUtils.SetCurrentDir


Sets the current directory.


System.IOUtils.TDirectory.SetCurrentDirectory


Sets the current directory.


System.IOUtils.TDirectory.SetLastAccessTime


Changes the last access time of a directory.


System.IOUtils.TDirectory.SetLastAccessTimeUtc


Changes the last access time of a directory.


System.IOUtils.TDirectory.SetLastWriteTime


Changes the last write time of a directory.


System.IOUtils.TDirectory.SetLastWriteTimeUtc


Changes the last write time of a directory.

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值