#include <polyglot_file_system.h>
◆ ~IFile_system()
  
  
      
        
          | virtual shcore::polyglot::IFile_system::~IFile_system  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtualdefault   | 
  
 
 
◆ check_access()
  
  
      
        
          | virtual void shcore::polyglot::IFile_system::check_access  | 
          ( | 
          const std::string &  | 
          path,  | 
         
        
           | 
           | 
          int64_t  | 
          flags  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Checks existence and accessibility of a file. 
- Parameters
 - 
  
    | path | the path to the file to check  | 
    | flags | the access modes to check, as a binary mask RWX only.  | 
  
   
- Exceptions
 - 
  
    | NoSuchFileException | if the file denoted by the path does not exist  | 
    | IOException | in case of IO error  | 
    | SecurityException | if this FileSystem denied the operation  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ create_directory()
  
  
      
        
          | virtual void shcore::polyglot::IFile_system::create_directory  | 
          ( | 
          const std::string &  | 
          path | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Creates a directory. 
param dir the directory to create param attrs the optional attributes to set atomically when creating the directory 
- Exceptions
 - 
  
    | FileAlreadyExistsException | if a file on given path already exists  | 
    | IOException | in case of IO error  | 
    | UnsupportedOperationException | if the attributes contain an attribute which cannot be set atomically  | 
    | SecurityException | if this FileSystem denied the operation  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ new_byte_channel()
  
  
      
        
          | virtual std::shared_ptr< ISeekable_channel > shcore::polyglot::IFile_system::new_byte_channel  | 
          ( | 
          const std::string &  | 
          path | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Opens or creates a file returning a SeekableByteChannel to access the file content. 
- Parameters
 - 
  
    | path | the path to the file to open  | 
  
   
- Returns
 - the created SeekableByteChannel 
 
- Exceptions
 - 
  
    | FileAlreadyExistsException | if CREATE_NEW option is set and a file already exists on given path  | 
    | IOException | in case of IO error  | 
    | UnsupportedOperationException | if the attributes contain an attribute which cannot be set atomically  | 
    | IllegalArgumentException | in case of invalid options combination  | 
    | SecurityException | if this FileSystem denied the operation  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ new_directory_stream()
  
  
      
        
          | virtual std::shared_ptr< IDirectory_stream > shcore::polyglot::IFile_system::new_directory_stream  | 
          ( | 
          const std::string &  | 
          path | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Returns directory entries. 
param dir the path to the directory to iterate entries for param filter the filter 
- Returns
 - the new DirectoryStream 
 
- Exceptions
 - 
  
    | NotDirectoryException | when given path does not denote a directory  | 
    | IOException | in case of IO error  | 
    | SecurityException | if this FileSystem denied the operation  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ parse_string_path()
  
  
      
        
          | virtual std::string shcore::polyglot::IFile_system::parse_string_path  | 
          ( | 
          const std::string &  | 
          path | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Parses a path from a String. 
This method is called only on the FileSystem with 
 scheme.
- Parameters
 - 
  
    | path | the string path to be converted to Path  | 
  
   
- Returns
 - the Path 
 
- Exceptions
 - 
  
    | UnsupportedOperationException | when the FileSystem supports only URI  | 
    | IllegalArgumentException | if the 
static char * path Definition: mysqldump.cc:150  
  string cannot be converted to a Path  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ parse_uri_path()
  
  
      
        
          | virtual std::string shcore::polyglot::IFile_system::parse_uri_path  | 
          ( | 
          const std::string &  | 
          uri | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Parses a path from an URI. 
- Parameters
 - 
  
    | uri | the URI to be converted to Path  | 
  
   
- Returns
 - the Path representing given URI 
 
- Exceptions
 - 
  
    | UnsupportedOperationException | when URI scheme is not supported  | 
    | IllegalArgumentException | if preconditions on the  do not hold. The format of the URI is FileSystem specific.  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ remove()
  
  
      
        
          | virtual void shcore::polyglot::IFile_system::remove  | 
          ( | 
          const std::string &  | 
          path | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Deletes a file. 
- Parameters
 - 
  
    | path | the path to the file to delete  | 
  
   
- Exceptions
 - 
  
    | NoSuchFileException | if a file on given path does not exist  | 
    | DirectoryNotEmptyException | if the path denotes a non empty directory  | 
    | IOException | in case of IO error  | 
    | SecurityException | if this FileSystem denied the operation  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ to_absolute_path()
  
  
      
        
          | virtual std::string shcore::polyglot::IFile_system::to_absolute_path  | 
          ( | 
          const std::string &  | 
          path | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Resolves given path to an absolute path. 
- Parameters
 - 
  
    | path | the path to resolve, may be a non normalized path  | 
  
   
- Returns
 - an absolute Path 
 
- Exceptions
 - 
  
    | SecurityException | if this FileSystem denied the operation  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
◆ to_real_path()
  
  
      
        
          | virtual std::string shcore::polyglot::IFile_system::to_real_path  | 
          ( | 
          const std::string &  | 
          path | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
Returns the real (canonical) path of an existing file. 
- Parameters
 - 
  
    | path | the path to resolve, may be a non normalized path param linkOptions options determining how the symbolic links should be handled  | 
  
   
- Returns
 - an absolute canonical path 
 
- Exceptions
 - 
  
    | IOException | in case of IO error  | 
    | SecurityException | if this FileSystem denied the operation  | 
  
   
Implemented in mrs::file_system::DbServiceFileSystem.
 
 
The documentation for this class was generated from the following file: