|
ValidateThis API Documentation | ||||
| FRAMES | |||||
WEB-INF.cftags.component
ValidateThis.util.FileSystem
public class FileSystem
I am responsible for all file system access.
| Constructor Summary | |
|---|---|
init(any transientFactory)
I build a new Filesystem Object |
|
| Method Summary | |
|---|---|
any |
CheckDirectoryExists(string Destination)
|
any |
CheckFileExists(any Destination, any FileName)
|
any |
CreateFile(string Destination, any FileName, any Content)
|
any |
delete(string Destination, string FileName)
|
private any |
fixDestination([string Destination=''], [boolean createDir='false'])
I ensure that the destination ends with a slash, and I create the destination directory if it doesn't exist |
string |
getAbsolutePath(string path)
Turn any system path, either relative or absolute, into a fully qualified one |
any |
getMappingPath([string Mapping=''])
I convert a dot path notation to full system path |
any |
listDirs(string Destination, [string Filter=''])
returns a list of directories |
any |
listFiles(string Destination, [string Filter=''], [boolean recurse='false'])
returns a list of filenames |
any |
listRelativeFilePaths(string Destination, [string Filter=''], [boolean recurse='false'])
returns a list of filenames with path info |
struct |
move(string Destination, string sourceFileName, string sourceFileExt, [string fileName='[runtime expression]'], [any Result='[runtime expression]'])
|
private any |
newResult()
|
any |
read(string Destination, [string FileName=''])
|
private string |
uniquefilename()
|
any |
upload(string Destination, string formFieldName, [string NewFileName])
|
| Methods inherited from class WEB-INF.cftags.component |
|---|
|
| Constructor Detail |
|---|
public init(any transientFactory)
transientFactory| Method Detail |
|---|
public any CheckDirectoryExists(string Destination)
Destination - A comma delimited list of relative or absolute pathspublic any CheckFileExists(any Destination, any FileName)
DestinationFileNamepublic any CreateFile(string Destination, any FileName, any Content)
DestinationFileNameContentpublic any delete(string Destination, string FileName)
DestinationFileNameprivate any fixDestination([string Destination=''], [boolean createDir='false'])
DestinationcreateDirpublic string getAbsolutePath(string path)
path - Abstract pathnamepublic any getMappingPath([string Mapping=''])
Mappingpublic any listDirs(string Destination, [string Filter=''])
DestinationFilterpublic any listFiles(string Destination, [string Filter=''], [boolean recurse='false'])
DestinationFilterrecursepublic any listRelativeFilePaths(string Destination, [string Filter=''], [boolean recurse='false'])
DestinationFilterrecursepublic struct move(string Destination, string sourceFileName, string sourceFileExt, [string fileName='[runtime expression]'], [any Result='[runtime expression]'])
DestinationsourceFileNamesourceFileExtfileNameResultprivate any newResult()
public any read(string Destination, [string FileName=''])
DestinationFileNameprivate string uniquefilename()
public any upload(string Destination, string formFieldName, [string NewFileName])
DestinationformFieldNameNewFileName
|
ValidateThis API Documentation | ||||
| FRAMES | |||||