File holds and manipulates files on file systems.  
 More...
File holds and manipulates files on file systems. 
◆ getAbsPath()
      
        
          | string File::getAbsPath | ( |  | ) |  | 
      
 
Returns absolute path of the File object. 
- Returns
- string, absolute path of the File object. 
 
 
◆ getContent()
Returns the file content of the File. 
- Parameters
- 
  
    | bCheckPermission,true | if check the permission of the file, otherwise false. |  
 
- Returns
- FileContent, the file content of the File. 
 
 
◆ getName()
Returns the filename of the file. 
- Returns
- string, the filename of the file. 
 
 
◆ getParent()
Returns the parent directory. 
- Returns
- Directory, the parent directory. 
 
 
◆ getPermission()
      
        
          | FilePermission File::getPermission | ( |  | ) |  | 
      
 
Returns the permissions of the file. 
- Returns
- enum<FilePermission>, the permissions of the file. Permissions: eExecute = 1, eWrite = 2, eRead = 4 
 
 
◆ getSize()
Returns the filesize of the file. 
- Returns
- int, the filesize of the file. 
 
 
◆ isDirectory()
      
        
          | bool File::isDirectory | ( |  | ) |  | 
      
 
Returns true if the file is a directory, otherwise false. 
- Returns
- bool, true if the file is a directory, otherwise false. 
 
 
◆ isExecutable()
      
        
          | bool File::isExecutable | ( |  | ) |  | 
      
 
Returns true if the file is executable, otherwise false. 
- Returns
- bool, true if the file is executable, otherwise false. 
 
 
◆ isReadable()
      
        
          | bool File::isReadable | ( |  | ) |  | 
      
 
Returns true if the file is readable, otherwise false. 
- Returns
- bool, true if the file is readable, otherwise false. 
 
 
◆ isWritable()
      
        
          | bool File::isWritable | ( |  | ) |  | 
      
 
Returns true if the file is writable, otherwise false. 
- Returns
- bool, true if the file is writable, otherwise false. 
 
 
◆ setTextContent()
      
        
          | void File::setTextContent | ( | string | , | 
        
          |  |  | bool |  | 
        
          |  | ) |  |  | 
      
 
set the content of the File object. 
- Parameters
- 
  
    | content,the | content string to set to the File. |  | bCheckPermission,true | if check the permission of the file, otherwise false. |  
 
 
 
The documentation for this class was generated from the following file: