Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | File Members | Related Pages

FileProxy Class Reference

List of all members.

Public Member Functions

 this (FilePath path)
 this (char[] path)
FilePath getPath ()
char[] toString ()
bool isExisting ()
FilePath[] toList ()

Private Attributes

FilePath path

Detailed Description

Models a generic file. Use this to manipulate files and directories in conjunction with FilePath, FileSystem and FileConduit. Doxygen has a hard time with D version() statements, so part of this class is documented in FileProxy::VersionWin32 instead.

Definition at line 63 of file FileProxy.d.


Member Function Documentation

this FilePath  path  )  [inline]
 

Construct a FileProxy from the provided FilePath

Definition at line 73 of file FileProxy.d.

this char[]  path  )  [inline]
 

Construct a FileProxy from a text string

Definition at line 84 of file FileProxy.d.

References FilePath.

FilePath getPath  )  [inline]
 

Return the FilePath associated with this FileProxy

Definition at line 95 of file FileProxy.d.

Referenced by testFileSize(), and testScanFiles().

char [] toString  )  [inline]
 

Return the name of the associated path

Definition at line 106 of file FileProxy.d.

References FilePath::toString().

bool isExisting  )  [inline]
 

Does this path currently exist?

Definition at line 117 of file FileProxy.d.

FilePath [] toList  )  [inline]
 

List the files contained within the associated path:

FileProxy proxy = new FileProxy ("."); foreach (FilePath path; proxy.toList()) Stdout.put(path).cr();

Definition at line 139 of file FileProxy.d.

Referenced by testFileList(), and testScanFiles().


Member Data Documentation

FilePath path [private]
 

Definition at line 65 of file FileProxy.d.


The documentation for this class was generated from the following file:
Generated on Tue Jan 25 21:18:32 2005 for Mango by doxygen 1.3.6