PureBasic - FileSystem

Overview

FileSystem is a generic term which deal with all advanced file related manipulations. For example, it's possible to read a directory content, create a new directory and more...

If you want to examine the contents of a directory start with the ExamineDirectory() function.

All file and directory names in this library can be specified either with a full or a relative path. Relative paths are interpreted relative to the current directory of the program. The GetCurrentDirectory() and SetCurrentDirectory() functions can be used to modify the current directory.

Specific OS path seperator characters are available #PS, #NPS, #PS$ ('\') and #NPS$ ('/').

In addition to the functions in this library you will also functions for manipulating file contents in the File library. To get the name of a running program use the function ProgramFilename() from the Process library.

Command Index

CheckFilename
CopyDirectory
CopyFile
CreateDirectory
DeleteDirectory
DeleteFile
DirectoryEntryAttributes
DirectoryEntryDate
DirectoryEntryName
DirectoryEntrySize
DirectoryEntryType
ExamineDirectory
FileSize
FinishDirectory
GetCurrentDirectory
GetExtensionPart
GetFileAttributes
GetFileDate
GetFilePart
GetHomeDirectory
GetPathPart
GetTemporaryDirectory
GetUserDirectory
IsDirectory
NextDirectoryEntry
RenameFile
SetCurrentDirectory
SetFileAttributes
SetFileDate

Example

FileSystem.pb

Supported OS

All

Reference Manual - Index