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 60 of file FileProxy.d.


Member Function Documentation

this FilePath  path  )  [inline]
 

Construct a FileProxy from the provided FilePath

Definition at line 70 of file FileProxy.d.

this char[]  path  )  [inline]
 

Construct a FileProxy from a text string

Definition at line 81 of file FileProxy.d.

References FilePath.

FilePath getPath  )  [inline]
 

Return the FilePath associated with this FileProxy

Definition at line 92 of file FileProxy.d.

Referenced by testFileSize(), and testScanFiles().

char [] toString  )  [inline]
 

Return the name of the associated path

Definition at line 103 of file FileProxy.d.

References FilePath::toString().

bool isExisting  )  [inline]
 

Does this path currently exist?

Definition at line 114 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 136 of file FileProxy.d.

Referenced by testFileList(), and testScanFiles().


Member Data Documentation

FilePath path [private]
 

Definition at line 62 of file FileProxy.d.


The documentation for this class was generated from the following file:
Generated on Sun Nov 7 19:07:02 2004 for Mango by doxygen 1.3.6