ComponentPro UltimateFtp

      ComponentPro.IO.FileSystem Methods

      See AlsoMembers Options: Show AllLanguage Filter: AllSend comments on this topic to ComponentPro
      For a list of all members of this type, see FileSystem members.

      Public Methods

      NameDescription
      Public MethodsStatic MemberCalculateTimeDiffCalculates the time difference between the source and the dest file systems.
      Virtual Public MethodsCancelOverloaded. Cancels all the operations.
      Virtual Public MethodsCombinePathOverloaded. Combines two path strings.
      Public MethodsCopyFromOverloaded. Copies data in a stream to the specified destination file on this system.
      Public MethodsCopyFromAsyncOverloaded. Asynchronously copies data in a stream to the specified destination file on this system.
      Public MethodsStatic MemberCopyToOverloaded. Copies a file from this file system to another file system.
      Public MethodsStatic MemberCopyToAsyncOverloaded. Asynchronously copies a file from this file system to another file system.
      Virtual Public MethodsCreateDirectoryCreates an empty directory.
      Public MethodsCreateDirectoryAsyncOverloaded. Begins an asynchronous CreateDirectory operation. Creates an empty directory.
      Public MethodsCreateFileInfoOverloaded. Creates a new instance of the FileInfoBase and set appropriate file information.
      Virtual Public MethodsDeleteOverloaded. Deletes files or directories and, if indicated, any subdirectories matching the specified search condition on the filesToDelete list.
      Public MethodsDeleteAsyncOverloaded. Asynchronously deletes files or directories and, if indicated, any subdirectories matching the specified search condition on the filesToDelete list. This method only deletes the items in the specified directory if the baseDirectoryPath parameter does not end with a directory separator (e.g. '/' or '\'). To remove the whole directory, you should add a directory separator character at the end of that parameter.
      Public MethodsDeleteDirectoryOverloaded. Deletes the specified directory and, if indicated, any subdirectories and files in the directory.
      Public MethodsDeleteDirectoryAsyncOverloaded. Asynchronously deletes the specified directory and, if indicated, any subdirectories and files in the directory.
      Virtual Public MethodsDeleteFileOverloaded. Deletes the specified file.
      Public MethodsDeleteFileAsyncOverloaded. Asynchronously deletes the specified file.
      Virtual Public MethodsDirectoryExistsDetermines whether the given path refers to an existing directory.
      Public MethodsDirectoryExistsAsyncOverloaded. Asynchronously detects whether the specified directory exists on the file system.
      Public MethodsDisposeReleases all used resources.
      Public MethodsEnsuresDirectoryCreatedEnsures the specified directory exists on the file system. If the specified directory does not exist, a new one is to be created.
      Virtual Public MethodsFileExistsOverloaded. Determines whether the specified file exists.
      Public MethodsFileExistsAsyncOverloaded. Asynchronous detects whether the specified file exists on the file system.
      Public MethodsStatic MemberGetCommonChecksumAlgorithmsGets checksum algorithms that both file system have in common.
      Virtual Public MethodsGetCurrentDirectoryGets the current working directory of the file system.
      Public MethodsGetCurrentDirectoryAsyncOverloaded. Asynchronously gets the current working directory of the file system.
      Virtual Public MethodsGetDirectoryNameReturns the directory information for the specified path string.
      Public MethodsGetDirectorySizeOverloaded. Returns total size of the specified directories.
      Public MethodsGetDirectorySizeAsyncOverloaded. Asynchronously calculates total size of the specified directory.
      Virtual Public MethodsGetFileChecksumOverloaded. Returns the checksum of the specified file.
      Public MethodsGetFileChecksumAsyncOverloaded. Begins an asynchronous GetFileChecksum operation. Retrieves the checksum of the specified file.
      Virtual Public MethodsGetFileLengthGets the size of the specified file.
      Public MethodsGetFileLengthAsyncOverloaded. Asynchronously retrieves the size of the specified file.
      Virtual Public MethodsGetFileNameReturns the file name and extension of the specified path string.
      Public MethodsGetFullPathReturns a full path of the specified path.
      Virtual Public MethodsGetItemInfoReturns a FileInfoBase object containing information of the specified file or directory.
      Public MethodsGetItemInfoAsyncOverloaded. Asynchronously retrieves a FileInfoBase containing the information about the specified file or directory.
      Virtual Public MethodsGetLastWriteTimeReturns the date and time the specified file or directory was last written to.
      Public MethodsGetLastWriteTimeAsyncOverloaded. Asynchronous retrieves the modification date and time of the specified file.
      Virtual Public MethodsGetSupportedChecksumTypesReturns checksum types supported by the file system.
      Public MethodsIsCancelingOverloaded. Returns a boolean value indicating whether user has called the Cancel method.
      Virtual Public MethodsIsPathRootedGets a value indicating whether the specified path string contains absolute or relative path information.
      Public MethodsListDirectoryOverloaded. Lists all files and subdirectories in the specified directory.
      Public MethodsListDirectoryAsyncOverloaded. Asynchronously lists files and subdirectories in the specified directory that match the specified search condition.
      Virtual Public MethodsListNameOverloaded. Returns a list of file and directory names in the current directory.
      Public MethodsListNameAsyncOverloaded. Begins an asynchronous ListName operation. Retrieves the list of file and directory names in the specified directory.
      Public MethodsMoveOverloaded. Moves files that match the search condition specified in the options parameter from the specified directory to the destination directory using multiple threads. This method only moves the items of the specified directory if the sourcePath parameter does not end with a directory separator (e.g. '/' or '\'). To move the whole directory, use the Rename method instead.
      Public MethodsMoveAsyncOverloaded. Asynchronously moves files that match the search condition specified in the options parameter from the specified directory to the destination directory on this file system. This method only moves the items of the specified directory if the sourcePath parameter does not end with a directory separator (e.g. '/' or '\'). To move the whole directory, use the Rename method instead.
      Public MethodsNormalizePathOverloaded. Normalizes a path. This method normalizes path like "\my folder\\my sub folder/sub folder/\my file" to "/my folder/my sub folder/sub folder/my file" if directory separator character is '/'.
      Public MethodsQuickSynchronizeOverloaded. Synchronizes the specified local directory with the specified source directory with the specified options.
      Public MethodsQuickSynchronizeAsyncOverloaded. Initiates an asynchronous operation to synchronize contents of a source directory and a local directory.
      Virtual Public MethodsRenameMoves a specified file to a new location, providing the option to specify a new file name.
      Public MethodsRenameAsyncOverloaded. Begins an asynchronous Rename operation. Renames a file or directory on the file system.
      Public MethodsSearchOverloaded. Searches for files and directories that match the specified search pattern, if specified, in the directoryPath.
      Public MethodsSearchAsyncOverloaded. Searches for files and directories that match the specified search conditions.
      Virtual Public MethodsSetCurrentDirectorySets the file system's current working directory to the specified directory.
      Public MethodsSetCurrentDirectoryAsyncOverloaded. Begins an asynchronous SetCurrentDirectory operation.
      Virtual Public MethodsSetLastWriteTimeSets the date and time at which the specified file was last written.
      Public MethodsSetLastWriteTimeAsyncOverloaded. Begins an asynchronous SetLastWriteTime operation. Sets the modification date and time of the specified file.
      Public MethodsStatic MemberTransferFilesOverloaded. Transfers files from the specified source file system to the specified destination file system.
      Public MethodsStatic MemberTransferFilesAsyncOverloaded. Asynchronously transfers files from the specified source file system to the specified destination file system.
      Top

      Protected Methods

      NameDescription
      Virtual Protected MethodsDisposeReleases all used resources.
      Protected MethodsFinalizeOverridden. Releases all used unmanaged resources.
      Virtual Protected MethodsGetItemInfoPartsBeforeTransferringIndicates whether the file system should obtains information of the source files before transferring.
      Virtual Protected MethodsOnCopyFromCompletedRaises the CopyFromCompleted event.
      Virtual Protected MethodsOnCopyToCompletedRaises the CopyToCompleted event.
      Virtual Protected MethodsOnCreateDirectoryCompletedRaises the CreateDirectoryCompleted event.
      Virtual Protected MethodsOnDeleteCompletedRaises the DeleteCompleted event.
      Virtual Protected MethodsOnDeleteDirectoryCompletedRaises the DeleteDirectoryCompleted event.
      Virtual Protected MethodsOnDeleteFileCompletedRaises the DeleteFileCompleted event.
      Virtual Protected MethodsOnDirectoryExistsCompletedRaises the DirectoryExistsCompleted event.
      Virtual Protected MethodsOnFileExistsCompletedRaises the FileExistsCompleted event.
      Virtual Protected MethodsOnGetCurrentDirectoryCompletedRaises the GetCurrentDirectoryCompleted event.
      Virtual Protected MethodsOnGetDirectorySizeCompletedRaises the GetDirectorySizeCompleted event.
      Virtual Protected MethodsOnGetFileChecksumCompletedRaises the GetFileChecksumCompleted event.
      Virtual Protected MethodsOnGetFileLengthCompletedRaises the GetFileLengthCompleted event.
      Virtual Protected MethodsOnGetItemInfoCompletedRaises the GetItemInfoCompleted event.
      Virtual Protected MethodsOnGetLastWriteTimeCompletedRaises the GetLastWriteTimeCompleted event.
      Virtual Protected MethodsOnListDirectoryCompletedRaises the ListDirectoryCompleted event.
      Virtual Protected MethodsOnListNameCompletedRaises the ListNameCompleted event.
      Virtual Protected MethodsOnMoveFilesCompletedRaises the MoveCompleted event.
      Virtual Protected MethodsOnProgressRaises the Progress event.
      Virtual Protected MethodsOnQuickSynchronizeCompletedRaises the QuickSynchronizeCompleted event.
      Virtual Protected MethodsOnRenameCompletedRaises the RenameCompleted event.
      Virtual Protected MethodsOnSearchCompletedRaises the SearchCompleted event.
      Virtual Protected MethodsOnSetCurrentDirectoryCompletedRaises the SetCurrentDirectoryCompleted event.
      Virtual Protected MethodsOnSetLastWriteTimeCompletedRaises the SetLastWriteTimeCompleted event.
      Virtual Protected MethodsOnThreadStateChangedRaises the ThreadStateChanged event.
      Virtual Protected MethodsOnTransferConfirmRaises the TransferConfirm event.
      Top

      See Also