• Home
  • Cosmos Website
  • Articles
  • API Documentation
Show / Hide Table of Contents
  • Cosmos.Build.Tasks
    • CreateMbr
    • CreateSyslinuxConfig
    • ExtractMapFromElfFile
    • IL2CPU
    • Launch
    • Ld
    • MakeIso
    • Nasm
    • ReadNasmMapToDebugInfo
    • TheRingMaster
  • Cosmos.Common
    • BinaryHelper
    • BinaryHelper.BitPos
    • ByteToString
    • NumberHelper
    • StringHelper
  • Cosmos.Common.Extensions
    • ByteConverter
    • ToHexString
  • Cosmos.Core
    • ACPI
    • ACPI.RSDPtr
    • BaseIOGroups
    • Bootstrap
    • CosmosRuntimeType
    • CPU
    • GCImplementation
    • Global
    • INTs
    • INTs.EFlagsEnum
    • INTs.ExceptionInterruptDelegate
    • INTs.IRQContext
    • INTs.IRQDelegate
    • INTs.MMXContext
    • INTs.TSS
    • IOPort
    • IOPortBase
    • IOPortRead
    • IOPortWrite
    • ManagedMemoryBlock
    • MemoryBlock
    • MemoryBlock08
    • MemoryBlock16
    • MemoryBlock32
    • MemoryMap
    • MemoryOperations
    • Multiboot
    • Multiboot.Header
    • PIC
    • PIC.Cmd
    • RawMemoryMap
    • VBE
    • VBE.ControllerInfo
    • VBE.ModeInfo
  • Cosmos.Core.IOGroup
    • ATA
    • COM
    • IOGroup
    • Keyboard
    • Mouse
    • PCI
    • PCSpeaker
    • PIC
    • PIT
    • PS2Controller
    • RTC
    • TextScreen
    • VBEIOGroup
    • VGA
  • Cosmos.Core.IOGroup.Network
    • AMDPCNetIIIOGroup
  • Cosmos.Core.Memory
    • Heap
    • HeapLarge
    • HeapMedium
    • HeapSmall
    • RAT
    • RAT.PageType
  • Cosmos.Core.Memory.Old
    • Heap
  • Cosmos.Core.MemoryGroup
    • AHCI
  • Cosmos.Core_Asm
    • ArrayGetLengthAsm
    • ArrayImpl
    • ArrayInternalCopyAsm
    • BufferBlockCopyAsm
    • BufferImpl
    • CPUCanReadCPUIDAsm
    • CPUDisableINTsAsm
    • CPUEnableINTsAsm
    • CPUGetAmountOfRAMAsm
    • CPUGetEndOfKernelAsm
    • CPUHaltAsm
    • CPUImpl
    • CPUInitFloatAsm
    • CPUInitSSEAsm
    • CPUReadCPUIDAsm
    • CPUReadModelSpecificRegisterAsm
    • CPUReadTimestampCounterAsm
    • CPUUpdateIDTAsm
    • CPUZeroFillAsm
    • DelegateCtorAsm
    • DelegateGetMulticastInvokeAsm
    • DelegateImpl
    • DelegateInvokeAsm
    • IOPortImpl
    • MultibootAsm
    • MultibootImpl
    • MultibootImplAsm
    • RuntimeHelpersImpl
  • Cosmos.Core_Asm.MemoryOperations
    • MemoryOperationsCopy128BlocksAsm
    • MemoryOperationsCopy128BytesAsm
    • MemoryOperationsCopy16BytesAsm
    • MemoryOperationsCopy32BytesAsm
    • MemoryOperationsCopy64BytesAsm
    • MemoryOperationsFill16BlocksAsm
  • Cosmos.Core_Plugs
    • GCImplementionImpl
    • RuntimeFieldHandleImpl
  • Cosmos.Core_Plugs.MemoryOperations
    • MemoryOperationsImpl
  • Cosmos.Core_Plugs.System
    • ArrayImpl
    • BufferImpl
    • CharUnicodeInfoImpl
    • DelegateImpl
    • DelegateImplInherit
    • EnvironmentImpl
    • EventHandlerImpl
    • ExceptionImpl
    • GCImpl
    • InternalEnvironmentImpl
    • MulticastDelegateImpl
    • ObjectImpl
    • OutOfMemoryExceptionImpl
    • RuntimeType
    • RuntimeType_RuntimeTypeCache
    • RuntimeTypeHandleImpl
    • SRImpl
    • StringImpl
    • TypeImpl
  • Cosmos.Core_Plugs.System.Collections.Generic
    • ByteComparer
    • ByteEqualityComparer
    • CharComparer
    • CharEqualityComparer
    • ComparerHelpersImpl
    • GuidComparer
    • GuidEqualityComparer
    • Int16Comparer
    • Int16EqualityComparer
    • Int32Comparer
    • Int32EqualityComparer
    • Int64Comparer
    • Int64EqualityComparer
    • ObjectComparer
    • ObjectEqualityComparer
    • SByteComparer
    • SByteEqualityComparer
    • StringComparer
    • StringEqualityComparer
    • UInt16Comparer
    • UInt16EqualityComparer
    • UInt32Comparer
    • UInt32EqualityComparer
    • UInt64Comparer
    • UInt64EqualityComparer
  • Cosmos.Core_Plugs.System.Diagnostics
    • DebuggerImpl
    • StopwatchImpl
  • Cosmos.Core_Plugs.System.Globalization
    • CultureInfoImpl
    • NumberFormatInfoImpl
  • Cosmos.Core_Plugs.System.Resources
    • ResourceManagerImpl
  • Cosmos.Core_Plugs.System.Runtime.CompilerServices
    • RuntimeHelpersImpl
  • Cosmos.Core_Plugs.System.Runtime.InteropServices
    • MarshalImpl
    • SafeHandleImpl
  • Cosmos.Core_Plugs.System.Text
    • DecoderFallbackImpl
    • EncoderFallbackImpl
    • InternalDecoderBestFitFallbackBufferImpl
    • InternalEncoderBestFitFallbackImpl
  • Cosmos.Core_Plugs.System.Threading
    • InterlockedImpl
    • MonitorImpl
    • TaskImpl
    • ThreadImpl
  • Cosmos.Debug.Common
    • DictionaryHelper
    • PipeClient
    • PipeServer
  • Cosmos.Debug.DebugConnectors
    • Consts
    • CoreDump
    • DebugConnector
    • DebugConnector.Incoming
    • DebugConnector.Outgoing
    • DebugConnectorEdison
    • DebugConnectorPipeClient
    • DebugConnectorPipeServer
    • DebugConnectorSerial
    • DebugConnectorStreamWithoutTimeouts
    • DebugConnectorStreamWithTimeouts
    • DebugConnectorTCPServer
    • DebugConnectorTestPipeServer
    • Debugger2Windows
    • Ds2Vs
    • Pipes
    • Vs2Ds
    • Windows2Debugger
  • Cosmos.Debug.GDB
    • AsmFile
    • AsmLine
    • BreakpointUC
    • FormBreakpoints
    • FormCallStack
    • FormCallStack.CallStack
    • FormHistory
    • FormLog
    • FormMain
    • FormMain.GdbAsmLine
    • FormRegisters
    • FormRegisters.CPUReg
    • FormSettings
    • FormWatches
    • GDB
    • GDB.Response
    • Global
    • RegNames
    • Settings
    • SettingsDS
    • SettingsDS.BreakpointDataTable
    • SettingsDS.BreakpointRow
    • SettingsDS.BreakpointRowChangeEvent
    • SettingsDS.BreakpointRowChangeEventHandler
    • SettingsDS.GeneralDataTable
    • SettingsDS.GeneralRow
    • SettingsDS.GeneralRowChangeEvent
    • SettingsDS.GeneralRowChangeEventHandler
    • SettingsDS.WatchDataTable
    • SettingsDS.WatchRow
    • SettingsDS.WatchRowChangeEvent
    • SettingsDS.WatchRowChangeEventHandler
    • SettingsDS.WindowDataTable
    • SettingsDS.WindowRow
    • SettingsDS.WindowRowChangeEvent
    • SettingsDS.WindowRowChangeEventHandler
    • WatchUC
    • Windows
  • Cosmos.Debug.Hosts
    • Bochs
    • Host
    • HyperV
    • IntelEdison
    • Qemu
    • Slave
    • VMware
  • Cosmos.Debug.Kernel
    • Debugger
    • DebuggerFactory
  • Cosmos.Debug.Kernel.Plugs.Asm
    • DebugBreak
    • DebugDoSend
    • DebugDoSendComplexLongNumber
    • DebugDoSendComplexNumber
    • DebugDoSendLongNumber
    • DebugDoSendNumber
    • DebuggerAsm
    • DebugSendChannelCommand
    • DebugSendChannelCommandNoData
    • DebugSendMessageBox
    • DebugSendPtr
    • DebugTraceOff
    • DebugTraceOn
    • DoBochsBreak
    • DoRealHalt
  • Cosmos.Deploy.Pixie
    • App
    • DHCP
    • DhcpPacket
    • DhcpPacket.MsgType
    • DhcpPacket.OpType
    • MainWindow
    • TrivialFTP
    • TrivialFTP.OpType
  • Cosmos.Deploy.USB
    • App
    • MainWindow
  • Cosmos.HAL
    • Bootstrap
    • CardType
    • ClassID
    • DataReceivedHandler
    • DebugTextScreen
    • Device
    • DeviceID
    • Global
    • KeyboardBase
    • KeyboardBase.KeyPressedEventHandler
    • MouseBase
    • MouseBase.MouseChangedEventHandler
    • NetworkDevice
    • PCI
    • PCIBaseAddressBar
    • PCIDevice
    • PCIDevice.Config
    • PCIDevice.DeviceClass
    • PCIDevice.PCIBist
    • PCIDevice.PCICommand
    • PCIDevice.PCIHeaderType
    • PCIDevice.PCIInterruptPIN
    • PCIDeviceBridge
    • PCIDeviceCardbus
    • PCIDeviceNormal
    • PCSpeaker
    • PIT
    • PIT.PITTimer
    • PIT.PITTimer.dOnTrigger
    • Power
    • ProgramIF
    • PS2Controller
    • PS2Keyboard
    • PS2Mouse
    • RTC
    • SpeakerExtensions
    • SubclassID
    • TextScreen
    • TextScreenBase
    • TextScreenHelpers
    • VendorID
    • VGADriver
    • VGADriver.ColorDepth
    • VGADriver.ScreenSize
    • VGADriver.TextSize
  • Cosmos.HAL.BlockDevice
    • AHCI
    • Ata
    • Ata.BusPositionEnum
    • Ata.ControllerIdEnum
    • AtaPio
    • AtaPio.Cmd
    • AtaPio.Ident
    • AtaPio.SpecLevel
    • AtaPio.Status
    • BlockDevice
    • EBR
    • EBR.PartInfo
    • GPT
    • GPT.GPartInfo
    • IDE
    • MBR
    • MBR.PartInfo
    • Partition
  • Cosmos.HAL.BlockDevice.Ports
    • SATA
    • SATAPI
    • StoragePort
  • Cosmos.HAL.BlockDevice.Registers
    • AHCISignature
    • ATACommands
    • ATADeviceStatus
    • Base
    • Bases
    • CommandAndStatus
    • CurrentInterfaceSpeedStatus
    • DeviceDetectionStatus
    • FISRegisterD2H
    • FISRegisterH2D
    • FISSize
    • FISType
    • GenericRegisters
    • HBACommandHeader
    • HBACommandTable
    • HBAPRDTEntry
    • InterfacePowerManagementStatus
    • InterruptEnable
    • InterruptStatus
    • PortRegisters
    • PortType
  • Cosmos.HAL.Drivers
    • VBEDriver
  • Cosmos.HAL.Drivers.PCI.Audio
    • PCMStream
  • Cosmos.HAL.Drivers.PCI.Network
    • AMDPCNetII
  • Cosmos.HAL.Drivers.PCI.Video
    • VMWareSVGAII
    • VMWareSVGAII.FIFO
    • VMWareSVGAII.Register
  • Cosmos.HAL.Drivers.USB
    • USBHost
  • Cosmos.HAL.Network
    • MACAddress
  • Cosmos.System
    • Console
    • ConsoleKeyEx
    • ConsoleKeyExExtensions
    • Durations
    • Global
    • Kernel
    • KeyboardManager
    • KeyEvent
    • KeyEvent.KeyEventType
    • KeyMapping
    • MathEx
    • MouseManager
    • MouseState
    • Notes
    • PCSExtensions
    • PCSpeaker
    • Power
    • ScanMapBase
  • Cosmos.System.ExtendedASCII
    • CosmosEncodingProvider
  • Cosmos.System.FileSystem
    • CosmosVFS
    • DiskManager
    • FatFileSystemFactory
    • FileSystem
    • FileSystemFactory
    • FileSystemType
  • Cosmos.System.FileSystem.FAT.Listing
    • FatDirectoryEntryAttributeConsts
    • FatDirectoryEntryMetadata
    • FatDirectoryEntryMetadata.LongFilenameEntryMetadata
  • Cosmos.System.FileSystem.Listing
    • DirectoryEntry
    • DirectoryEntryTypeEnum
  • Cosmos.System.FileSystem.VFS
    • VFSBase
    • VFSManager
  • Cosmos.System.Graphics
    • Bitmap
    • Canvas
    • ColorDepth
    • ColorOrder
    • FullScreenCanvas
    • Image
    • ImageFormat
    • Mode
    • Pen
    • Point
    • SVGAIICanvas
    • VBECanvas
    • VGACanvas
    • VGAScreen
  • Cosmos.System.Graphics.Fonts
    • Font
    • PCScreenFont
    • UnicodeMapping
  • Cosmos.System.Network
    • EthernetPacket
    • NetworkStack
    • UdpClient
  • Cosmos.System.Network.IPv4
    • Address
    • Config
    • EndPoint
    • IPPacket
    • UDPPacket
  • Cosmos.System.ScanMaps
    • DE_Standard
    • FR_Standard
    • TR_StandardQ
    • US_Standard
  • Cosmos.System_Plugs.System
    • ByteImpl
    • ConsoleImpl
    • ConvertImpl
    • DateTimeImpl
    • DecimalImpl
    • DoubleImpl
    • EnumImpl
    • GuidImpl
    • Int16Impl
    • Int32Impl
    • Int64Impl
    • IntPtrImpl
    • MathImpl
    • RandomImpl
    • SByteImpl
    • SingleImpl
    • TimeSpanImpl
    • UInt16Impl
    • UInt32Impl
    • UInt64Impl
    • UIntPtrImpl
    • ValueTypeImpl
  • Cosmos.System_Plugs.System.Globalization
    • CompareInfoImpl
    • EncodingTableImpl
  • Cosmos.System_Plugs.System.IO
    • CosmosFileSystem
    • CosmosFileSystemInfo
    • DirectoryImpl
    • DirectoryInfoImpl
    • DriveInfoImpl
    • FileImpl
    • FileInfoImpl
    • FileLoadExceptionImpl
    • FileNotFoundExceptionImpl
    • FileStreamImpl
    • PathImpl
    • PathInternalImpl
    • TextWriterImpl
  • Cosmos.System_Plugs.System.Runtime
    • RuntimeHelpersImpl
  • Cosmos.System_Plugs.System.Text
    • DecoderExceptionFallbackBufferImpl
    • EncodingImpl
  • Cosmos.System_Plugs.System.Threading
    • SpinWaitImpl
    • ThreadImpl
  • Cosmos.TestRunner
    • Assert
    • TestChannelCommandEnum
    • TestController
  • Cosmos.VS.DebugEngine
    • AD7Util
    • AsmSource
    • CmdIDList
  • Cosmos.VS.DebugEngine.AD7.Definitions
    • AD7_HRESULT
  • Cosmos.VS.DebugEngine.AD7.Impl
    • AD7BoundBreakpoint
    • AD7BreakpointResolution
    • AD7DocumentContext
    • AD7Engine
    • AD7Expression
    • AD7MemoryAddress
    • AD7Module
    • AD7PendingBreakpoint
    • AD7Port
    • AD7PortSupplier
    • AD7Process
    • AD7ProgramProvider
    • AD7StackFrame
    • AD7Thread
    • DebugLocalInfo
  • Cosmos.VS.DebugEngine.Commands
    • BaseDebugCommand
    • DebugCommandExecute
    • DebugCommandHandler
    • DebugExecCommand
    • DebugLaunchCommand
    • DebugLogCommand
  • Cosmos.VS.DebugEngine.Engine.Impl
    • BreakpointManager
    • EngineCallback
    • EngineUtils
    • Operation
    • WorkerThread
  • Cosmos.VS.DebugEngine.Utilities
    • Extensions
  • Cosmos.VS.ProjectSystem
    • IBootableProperties
  • Cosmos.VS.Windows
    • AsmCode
    • AsmComment
    • AsmLabel
    • AsmLine
    • AssemblyUC
    • ConsoleConsts
    • ConsoleTW
    • ConsoleUC
    • CosmosWindowsPackage
    • DataBytesUC
    • DebuggerChannelUC
    • DebuggerUC
    • Global
    • InternalTW
    • InternalUC
    • MemoryViewUC
    • RegistersControl
    • StackTW
    • StackUC
    • StateStorer
    • ToolWindowPane2
    • ToolWindowPaneChannel
  • NASM
    • Program
  • TheRingMaster
    • Program

Class VFSManager

VFSManager (Virtual File System Manager) class. Used to manage files and directories.

Inheritance
System.Object
VFSManager
Namespace: Cosmos.System.FileSystem.VFS
Assembly: Cosmos.System2.dll
Syntax
public static class VFSManager : object

Methods

| Improve this Doc View Source

CreateDirectory(String)

Create directory.

Declaration
public static DirectoryEntry CreateDirectory(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the directory.

Returns
Type Description
DirectoryEntry

DirectoryEntry value.

| Improve this Doc View Source

CreateFile(String)

Create a file.

Declaration
public static DirectoryEntry CreateFile(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the file.

Returns
Type Description
DirectoryEntry

DirectoryEntry value.

| Improve this Doc View Source

DeleteDirectory(String, Boolean)

Delete directory.

Declaration
public static void DeleteDirectory(string aPath, bool recursive)
Parameters
Type Name Description
System.String aPath

A path to the directory.

System.Boolean recursive

Recursive delete (not empty directory).

| Improve this Doc View Source

DeleteFile(String)

Delete a file.

Declaration
public static void DeleteFile(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the file.

| Improve this Doc View Source

DirectoryExists(DirectoryEntry)

Check if directory exists.

Declaration
public static bool DirectoryExists(DirectoryEntry aEntry)
Parameters
Type Name Description
DirectoryEntry aEntry

A entry of the directory.

Returns
Type Description
System.Boolean

bool value.

| Improve this Doc View Source

DirectoryExists(String)

Check if directory exists.

Declaration
public static bool DirectoryExists(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the directory.

Returns
Type Description
System.Boolean

bool value.

| Improve this Doc View Source

FileExists(DirectoryEntry)

Check if file exists.

Declaration
public static bool FileExists(DirectoryEntry aEntry)
Parameters
Type Name Description
DirectoryEntry aEntry

A entry of the file.

Returns
Type Description
System.Boolean

bool value.

| Improve this Doc View Source

FileExists(String)

Check if file exists.

Declaration
public static bool FileExists(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the file.

Returns
Type Description
System.Boolean

bool value.

| Improve this Doc View Source

Format(String, String, Boolean)

Format partition.

Declaration
public static void Format(string aDriveId, string aDriveFormat, bool aQuick)
Parameters
Type Name Description
System.String aDriveId

A drive id.

System.String aDriveFormat

A drive format.

System.Boolean aQuick

Quick format.

| Improve this Doc View Source

GetAltDirectorySeparatorChar()

Get alt. directory separator char.

Declaration
public static char GetAltDirectorySeparatorChar()
Returns
Type Description
System.Char

char value.

| Improve this Doc View Source

GetAvailableFreeSpace(String)

Get available free space.

Declaration
public static long GetAvailableFreeSpace(string aDriveId)
Parameters
Type Name Description
System.String aDriveId

A drive id to get the size of.

Returns
Type Description
System.Int64

long value.

| Improve this Doc View Source

GetDirectory(String)

Get directory.

Declaration
public static DirectoryEntry GetDirectory(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the directory.

Returns
Type Description
DirectoryEntry

DirectoryEntry value.

| Improve this Doc View Source

GetDirectoryListing(String)

Get directory listing.

Declaration
public static List<DirectoryEntry> GetDirectoryListing(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the entry.

Returns
Type Description
List<DirectoryEntry>

DirectoryEntry list value.

| Improve this Doc View Source

GetDirectorySeparatorChar()

Get directory separator char.

Declaration
public static char GetDirectorySeparatorChar()
Returns
Type Description
System.Char

char value.

| Improve this Doc View Source

GetFile(String)

Get file.

Declaration
public static DirectoryEntry GetFile(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the file.

Returns
Type Description
DirectoryEntry

DirectoryEntry value.

| Improve this Doc View Source

GetFileAttributes(String)

Get file attributes.

Declaration
public static FileAttributes GetFileAttributes(string aPath)
Parameters
Type Name Description
System.String aPath

A path to the file

Returns
Type Description
FileAttributes

FileAttributes value.

| Improve this Doc View Source

GetFileStream(String)

Get file stream.

Declaration
public static Stream GetFileStream(string aPathname)
Parameters
Type Name Description
System.String aPathname

A path to the file.

Returns
Type Description
Stream

Stream value.

| Improve this Doc View Source

GetFileSystemLabel(String)

Get file system label.

Declaration
public static string GetFileSystemLabel(string aDriveId)
Parameters
Type Name Description
System.String aDriveId

A drive id.

Returns
Type Description
System.String

string value.

| Improve this Doc View Source

GetFileSystemType(String)

Get file system type.

Declaration
public static string GetFileSystemType(string aDriveId)
Parameters
Type Name Description
System.String aDriveId

A drive id.

Returns
Type Description
System.String

string value.

| Improve this Doc View Source

GetFullPath(DirectoryEntry)

Get full path to the entry.

Declaration
public static string GetFullPath(DirectoryEntry aEntry)
Parameters
Type Name Description
DirectoryEntry aEntry

A entry.

Returns
Type Description
System.String

string value.

| Improve this Doc View Source

GetInvalidFileNameChars()

Get invalid filename chars.

Declaration
public static char[] GetInvalidFileNameChars()
Returns
Type Description
System.Char[]

char array value.

| Improve this Doc View Source

GetInvalidPathCharsWithAdditionalChecks()

Get invalid path chars with additional checks.

Declaration
public static char[] GetInvalidPathCharsWithAdditionalChecks()
Returns
Type Description
System.Char[]

char array value.

| Improve this Doc View Source

GetLogicalDrives()

Get logical drivers list.

Declaration
public static List<string> GetLogicalDrives()
Returns
Type Description
List<System.String>

List of strings value.

| Improve this Doc View Source

GetMaxPath()

Get max path.

Declaration
public static int GetMaxPath()
Returns
Type Description
System.Int32

int value.

| Improve this Doc View Source

GetParent(String)

Gets the parent directory entry from the path.

Declaration
public static DirectoryEntry GetParent(string aPath)
Parameters
Type Name Description
System.String aPath

The full path to the current directory entry.

Returns
Type Description
DirectoryEntry

The parent directory entry.

| Improve this Doc View Source

GetPathSeparator()

Get path separator char.

Declaration
public static char GetPathSeparator()
Returns
Type Description
System.Char

char value.

| Improve this Doc View Source

GetRealInvalidPathChars()

Get real invalid path chars.

Declaration
public static char[] GetRealInvalidPathChars()
Returns
Type Description
System.Char[]

char array value.

| Improve this Doc View Source

GetTotalFreeSpace(String)

Get total free space.

Declaration
public static long GetTotalFreeSpace(string aDriveId)
Parameters
Type Name Description
System.String aDriveId

A drive id to get the size of.

Returns
Type Description
System.Int64

long value.

| Improve this Doc View Source

GetTotalSize(String)

Get total size in bytes.

Declaration
public static long GetTotalSize(string aDriveId)
Parameters
Type Name Description
System.String aDriveId

A drive id to get the size of.

Returns
Type Description
System.Int64

long value.

| Improve this Doc View Source

GetTrimEndChars()

Get trim end chars.

Declaration
public static char[] GetTrimEndChars()
Returns
Type Description
System.Char[]

char array value.

| Improve this Doc View Source

GetVolume(String)

Get volume.

Declaration
public static DirectoryEntry GetVolume(string aVolume)
Parameters
Type Name Description
System.String aVolume

The volume root path.

Returns
Type Description
DirectoryEntry

A directory entry for the volume.

| Improve this Doc View Source

GetVolumes()

Gets the volumes for all registered file systems.

Declaration
public static List<DirectoryEntry> GetVolumes()
Returns
Type Description
List<DirectoryEntry>

A list of directory entries for all volumes.

| Improve this Doc View Source

GetVolumeSeparatorChar()

Get volume separator char.

Declaration
public static char GetVolumeSeparatorChar()
Returns
Type Description
System.Char

char value.

| Improve this Doc View Source

IsValidDriveId(String)

Check if drive id is valid.

Declaration
public static bool IsValidDriveId(string aPath)
Parameters
Type Name Description
System.String aPath
Returns
Type Description
System.Boolean

bool value.

| Improve this Doc View Source

RegisterFileSystem(FileSystemFactory)

Register file system.

Declaration
public static void RegisterFileSystem(FileSystemFactory aFileSystemFactory)
Parameters
Type Name Description
FileSystemFactory aFileSystemFactory

A file system to register.

| Improve this Doc View Source

RegisterVFS(VFSBase, Boolean)

Register VFS. Initialize the VFS.

Declaration
public static void RegisterVFS(VFSBase aVFS, bool aAllowReinitialise = false)
Parameters
Type Name Description
VFSBase aVFS

A VFS to register.

System.Boolean aAllowReinitialise
| Improve this Doc View Source

SetFileAttributes(String, FileAttributes)

Sets the attributes for a File / Directory. Not implemented.

Declaration
public static void SetFileAttributes(string aPath, FileAttributes fileAttributes)
Parameters
Type Name Description
System.String aPath

The path of the File / Directory.

FileAttributes fileAttributes

The attributes of the File / Directory.

| Improve this Doc View Source

SetFileSystemLabel(String, String)

Set file system type.

Declaration
public static void SetFileSystemLabel(string aDriveId, string aLabel)
Parameters
Type Name Description
System.String aDriveId

A drive id.

System.String aLabel

A label to be set.

| Improve this Doc View Source

SplitPath(String)

Split path.

Declaration
public static string[] SplitPath(string aPath)
Parameters
Type Name Description
System.String aPath

A path to split.

Returns
Type Description
System.String[]

string array.

  • Improve this Doc
  • View Source
In This Article
Back to top