Package com.cloudloop.storage

Examples of com.cloudloop.storage.CloudStorePath


    public static CloudStorePath popLeaf(
            CloudStorePath path )
    {
  if ( path.isRoot( ) )
      return ROOT_DIRECTORY;
  return new CloudStorePath( PATH_SEPARATOR + path.getLeaf( ) );
    }
View Full Code Here


    replaced.push( pathNode );
      }
  }
  String pathStr =
    convertPathStackToString( replaced, 0, replaced.size( ), true );
  return new CloudStorePath( pathStr, path.isDirectory( ), ROOT_DIRECTORY );
    }
View Full Code Here

  return sendCreateDirectoryRequest( directory );
    }
   
    public CloudStoreDirectory getDirectory( String path )
    {
  CloudStorePath cloudPath = new CloudStorePath( path, true,
    PathUtil.ROOT_DIRECTORY );
  if ( !cloudPath.isDirectory( ) )
  {
      throw new InvalidPathException( "Path, "
        + cloudPath.getAbsolutePath( )
        + " does not represent a directory location." );
  }
 
  // TODO: fill in directory header info
  return new CloudStoreDirectory( this, cloudPath );
View Full Code Here

             recursive );
    }
   
    public CloudStoreFile getFile( String path )
    {
  CloudStorePath cloudPath = new CloudStorePath( path );
  if ( cloudPath.isDirectory( ) )
  {
      throw new InvalidPathException(
        "Path represents a directory location." );
  }
 
View Full Code Here

  }
 
  CloudStoreDirectory newDir = getDirectory( directory
    .getParentDirectory( ).getPath( )
    .combine(
        new CloudStorePath( newName, true,
    PathUtil.ROOT_DIRECTORY ) ).getAbsolutePath( ) );
  if ( newDir.existsInStore( ) )
  {
      throw new DirectoryAlreadyExistsException( "Directory '"
        + directory.getPath( ).getAbsolutePath( )
View Full Code Here

        + newName + "'." );
  }
 
  CloudStoreFile newFile = getFile( file.getParentDirectory( ).getPath( )
    .combine(
        new CloudStorePath( newName, false,
    PathUtil.ROOT_DIRECTORY ) ).getAbsolutePath( ) );
  if ( newFile.existsInStore( ) )
  {
      throw new FileAlreadyExistsException( "File '"
        + newFile.getPath( ).getAbsolutePath( )
View Full Code Here

TOP

Related Classes of com.cloudloop.storage.CloudStorePath

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.