DotNetNuke API Reference
FileSystemUtils Class
NamespacesDotNetNuke.Common.UtilitiesFileSystemUtils
Declaration Syntax
C#Visual BasicVisual Basic Usage
public class FileSystemUtils
Public Class FileSystemUtils
Dim instance As FileSystemUtils
Members
All MembersConstructorsMethods



IconMemberDescription
FileSystemUtils()()()()
Initializes a new instance of the FileSystemUtils class

AddAllUserReadPermission(FolderInfo, PermissionInfo)
AddFile(String, Int32, String, String, String)
AddFile(String, Int32, Boolean, FolderInfo)
Adds a File

AddFolder(PortalSettings, String, String)
Adds a Folder

AddFolder(PortalSettings, String, String, Int32)
Adds a Folder

AddFolder(PortalSettings, String, String, Int32, Guid)
AddToZip(ZipOutputStream%, String, String, String)
Adds a File to a Zip File

AddTrailingSlash(String)
AddUserFolder(PortalSettings, String, Int32, Int32)
Creates a User Folder

CheckValidFileName(String)
Checks that the file name is valid

CopyFile(String, String)
Trys to copy a file in the file system

CopyFile(String, String, PortalSettings)
Copies a File

CreateFileFromString(String, String, String, String, String, Boolean)
UploadFile pocesses a single file

DefaultProtectedFolders(String)
This checks to see if the folder is a protected type of folder

DeleteFile(String)
Trys to delete a file from the file system

DeleteFile(String, PortalSettings)
Deletes a file

DeleteFile(String, PortalSettings, Boolean)
Deletes a file

DeleteFiles(Array)
DeleteFileWithWait(String, Int16, Int16)
Deletes file in areas with a high degree of concurrent file access (i.e. caching, logging) This solves file concurrency issues under heavy load.

DeleteFolder(Int32, DirectoryInfo, String)
Deletes a folder

DownloadFile(String)
Moved directly from FileManager code, probably should make extension lookup more generic

DownloadFile(PortalSettings, Int32, Boolean, Boolean)
Streams a file to the output stream if the user has the proper permissions

DownloadFile(Int32, Int32, Boolean, Boolean)
Streams a file to the output stream if the user has the proper permissions

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FormatFolderPath(String)
GetContentType(String)
gets the content type based on the extension

GetFileContent(FileInfo)
GetFileContent(FileInfo, Int32, String) Obsolete.
GetFilesByFolder(Int32, Int32)
GetFilesByFolder(Int32, String) Obsolete.
GetFileStream(FileInfo)
GetFileStream(FileInfo, Int32, String) Obsolete.
GetFolder(Int32, String)
GetFolderPortalId(PortalSettings)
GetFolders(Int32)
Gets all the folders for a Portal

GetFoldersByParentFolder(Int32, String)
Gets all the subFolders for a Parent

GetFoldersByUser(Int32, Boolean, Boolean, String)
GetFoldersByUser(Int32, Boolean, Boolean, Boolean, String) Obsolete.
GetHash(array<Byte>[]()[][])
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetRoles(String, Int32, String) Obsolete.
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
GetUserFolderPath(Int32)
Returns path to a User Folder

MapPath(String)
The MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server.

MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
MoveFile(String, String, PortalSettings)
Moves (Renames) a File

PullFile(String, String)
ReadFile(String)
ReceiveFile(HttpRequest, String)
RemoveOrphanedFolders(Int32)
RemoveTrailingSlash(String)
SaveFile(String, array<Byte>[]()[][])
SendFile(String, String)
SetFileAttributes(String, Int32)
Assigns 1 or more attributes to a file

SetFolderPermission(Int32, Int32, Int32, Int32, String)
SetFolderPermission(Int32, Int32, Int32, Int32, Int32, String)
Sets a Folder Permission

SetFolderPermissions(Int32, Int32, Int32, String)
Sets a Folders Permissions to the Administrator Role

SetFolderPermissions(Int32, Int32, String)
Sets a Folders Permissions the same as the Folders parent folder

StripFolderPath(String)
Synchronize(Int32, Int32, String, Boolean)
Synchronize(Int32, Int32, String) Obsolete.
SynchronizeFolder(Int32, String, String, Boolean, Boolean)
SynchronizeFolder(Int32, String, String, Boolean, Boolean, Boolean, Boolean)
SynchronizeFolder(Int32, String, String, Boolean) Obsolete.
SynchronizeFolder(Int32, String, String, Boolean, Boolean, Boolean) Obsolete.
SynchronizeFolder(Int32, Int32, String, String, String, Boolean) Obsolete.
ToJson
Extension method on object that serializes the value to Json. Note the type must be marked Serializable or include a DataContract attribute.
(Inherited from JsonExtensionsWeb.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
UnzipFile(String, String, PortalSettings)
Unzips a File

UnzipResources(ZipInputStream, String)
UploadFile(String, HttpPostedFile)
UploadFile pocesses a single file

UploadFile(String, HttpPostedFile, Boolean)
UploadFile pocesses a single file

UploadFile(String, HttpPostedFile, String)
UploadFile pocesses a single file

UploadFile(String, HttpPostedFile, String, Boolean)
UploadFile pocesses a single file

UploadFile(String, UploadedFile, String)
WriteFile(String)
Writes file to response stream. Workaround offered by MS for large files http://support.microsoft.com/default.aspx?scid=kb;EN-US;812406

Inheritance Hierarchy
Object
FileSystemUtils

Assembly: DotNetNuke (Module: DotNetNuke) Version: 5.6.0.459