Kerbal Space Program
1.12.4
|
Public Member Functions | |
TextWriter | AppendText () |
Creates a System.IO.StreamWriter that appends text to the file represented by this instance of the System.IO.FileInfo. More... | |
FileInfo | CopyTo (string destFileName, bool overwrite) |
Copies an existing file to a new file, allowing the overwriting of an existing file. More... | |
FileInfo | CopyTo (string destFileName) |
Copies an existing file to a new file, disallowing the overwriting of an existing file. More... | |
FileStream | Create () |
Creates a file. More... | |
TextWriter | CreateText () |
Creates a KSP.IO.TextWriter that writes a new text file. More... | |
void | Decrypt () |
Decrypts a file that was encrypted by the current account using the System.IO.FileInfo.Encrypt() method. More... | |
void | Delete () |
Permanently deletes a file. More... | |
void | Encrypt () |
Encrypts a file so that only the account used to encrypt the file can decrypt it. More... | |
void | MoveTo (string destFileName) |
Moves a specified file to a new location, providing the option to specify a new file name. More... | |
FileStream | Open (FileMode mode, FileAccess access) |
Opens a file in the specified mode with read, write, or read/write access. More... | |
FileStream | Open (FileMode mode) |
Opens a file in the specified mode. More... | |
FileStream | Open (FileMode mode, FileAccess access, FileShare share) |
Opens a file in the specified mode with read, write, or read/write access and the specified sharing option. More... | |
FileStream | OpenRead () |
Creates a read-only System.IO.FileStream. More... | |
TextReader | OpenText () |
Creates a System.IO.StreamReader with UTF8 encoding that reads from an existing text file. More... | |
FileStream | OpenWrite () |
Creates a write-only System.IO.FileStream. More... | |
FileInfo | Replace (string destinationFileName, string destinationBackupFileName, bool ignoreMetadataErrors) |
Replaces the contents of a specified file with the file described by the current System.IO.FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors. More... | |
FileInfo | Replace (string destinationFileName, string destinationBackupFileName) |
Replaces the contents of a specified file with the file described by the current System.IO.FileInfo object, deleting the original file, and creating a backup of the replaced file. More... | |
override string | ToString () |
Returns the path as a string. More... | |
Static Public Member Functions | |
static FileInfo | CreateForType< T > (string filename, Vessel flight=null) |
Create a text reader stream. More... | |
Properties | |
string | DirectoryName [get] |
Gets a string representing the directory's full path. More... | |
bool | Exists [get] |
Gets a value indicating whether a file exists. More... | |
bool | IsReadOnly [get, set] |
Gets or sets a value that determines if the current file is read only. More... | |
long | Length [get] |
Gets the size, in bytes, of the current file. More... | |
string | Name [get] |
Gets the name of the file. More... | |
|
inline |
Creates a System.IO.StreamWriter that appends text to the file represented by this instance of the System.IO.FileInfo.
|
inline |
Copies an existing file to a new file, allowing the overwriting of an existing file.
overwrite | true to allow an existing file to be overwritten; otherwise, false. |
destFileName | The name of the new file to copy to. |
|
inline |
Copies an existing file to a new file, disallowing the overwriting of an existing file.
destFileName | The name of the new file to copy to. |
|
inline |
Creates a file.
|
inlinestatic |
Create a text reader stream.
T | The plugin type for which it is being initialized |
flight | Optional flight |
|
inline |
Creates a KSP.IO.TextWriter that writes a new text file.
|
inline |
Decrypts a file that was encrypted by the current account using the System.IO.FileInfo.Encrypt() method.
|
inline |
Permanently deletes a file.
|
inline |
Encrypts a file so that only the account used to encrypt the file can decrypt it.
|
inline |
Moves a specified file to a new location, providing the option to specify a new file name.
destFileName | The path to move the file to, which can specify a different file name. |
|
inline |
Opens a file in the specified mode with read, write, or read/write access.
access | A System.IO.FileAccess constant specifying whether to open the file with Read, Write, or ReadWrite file access. |
mode | A System.IO.FileMode constant specifying the mode (for example, Open or Append) in which to open the file. |
|
inline |
Opens a file in the specified mode.
mode | A KSP.IO.FileMode constant specifying the mode (for example, Open or Append) in which to open the file. |
|
inline |
Opens a file in the specified mode with read, write, or read/write access and the specified sharing option.
access | A System.IO.FileAccess constant specifying whether to open the file with Read, Write, or ReadWrite file access. |
share | A System.IO.FileShare constant specifying the type of access other FileStream objects have to this file. |
mode | A System.IO.FileMode constant specifying the mode (for example, Open or Append) in which to open the file. |
|
inline |
Creates a read-only System.IO.FileStream.
|
inline |
Creates a System.IO.StreamReader with UTF8 encoding that reads from an existing text file.
|
inline |
Creates a write-only System.IO.FileStream.
|
inline |
Replaces the contents of a specified file with the file described by the current System.IO.FileInfo object, deleting the original file, and creating a backup of the replaced file. Also specifies whether to ignore merge errors.
destinationBackupFileName | The name of a file with which to create a backup of the file described by the destFileName parameter. |
ignoreMetadataErrors | true to ignore merge errors (such as attributes and ACLs) from the replaced file to the replacement file; otherwise false. |
destinationFileName | The name of a file to replace with the current file. |
|
inline |
Replaces the contents of a specified file with the file described by the current System.IO.FileInfo object, deleting the original file, and creating a backup of the replaced file.
destinationBackupFileName | The name of a file with which to create a backup of the file described by the destFileName parameter. |
destinationFileName | The name of a file to replace with the current file. |
|
inline |
Returns the path as a string.
|
get |
Gets a string representing the directory's full path.
|
get |
Gets a value indicating whether a file exists.
|
getset |
Gets or sets a value that determines if the current file is read only.
|
get |
Gets the size, in bytes, of the current file.
|
get |
Gets the name of the file.