Examples of createDirectory()


Examples of org.jbpm.designer.repository.vfs.VFSRepository.createDirectory()

        Repository repository = new VFSRepository(producer.getIoService());
        ((VFSRepository)repository).setDescriptor(descriptor);
        boolean rootFolderExists = repository.directoryExists("/test");
        assertFalse(rootFolderExists);

        Directory directoryId = repository.createDirectory("/test/nested");
        assertNotNull(directoryId);

        rootFolderExists = repository.directoryExists("/test");
        assertTrue(rootFolderExists);
View Full Code Here

Examples of org.jbpm.designer.repository.vfs.VFSRepository.createDirectory()

        Repository repository = new VFSRepository(producer.getIoService());
        ((VFSRepository)repository).setDescriptor(descriptor);
        boolean rootFolderExists = repository.directoryExists("/");
        assertTrue(rootFolderExists);

        Directory directoryId = repository.createDirectory("/test/nested");
        assertNotNull(directoryId);

        Collection<Asset> assets = repository.listAssets("/test/nested");
        assertNotNull(assets);
        assertEquals(0, assets.size());
View Full Code Here

Examples of org.jclouds.blobstore.AsyncBlobStore.createDirectory()

      Blob blob = createMock(Blob.class);
      MutableBlobMetadata md = createMock(MutableBlobMetadata.class);

      expect(blob.getMetadata()).andReturn(md).atLeastOnce();
      expect(md.getName()).andReturn("rootpath/hello").atLeastOnce();
      expect(asyncBlobStore.createDirectory("container", "rootpath")).andReturn(null);

      replay(asyncBlobStore);
      replay(blob);
      replay(md);
View Full Code Here

Examples of org.jclouds.blobstore.BlobStore.createDirectory()

   @Test
   void testToStorageMetadata() {
      assertNull(ToStorageMetadata.INSTANCE.apply(null));
      BlobStore blobStore = getBlobStore();
      blobStore.createContainerInLocation(null, "test");
      blobStore.createDirectory("test", "one");
      Set<StorageMetadata> storageMetadataSet = ImmutableSet.<StorageMetadata>builder()
                                                            .addAll(transform(blobStore.list(), ToStorageMetadata.INSTANCE))
                                                            .build();
      assertFalse(storageMetadataSet.isEmpty());
      StorageMetadata representation = storageMetadataSet.iterator().next();
View Full Code Here

Examples of org.jclouds.blobstore.BlobStore.createDirectory()

   @Test
   void testToBlob() {
      assertNull(ToBlob.INSTANCE.apply(null));
      BlobStore blobStore = getBlobStore();
      blobStore.createContainerInLocation(null, "container");
      blobStore.createDirectory("container", "one");

      blobStore.putBlob("container", blobStore.blobBuilder("myblob").payload("testcontent").build());
      Blob representation = ToBlob.INSTANCE.apply(blobStore.getBlob("container", "myblob"));
      assertNotNull(representation);
      assertNotNull(representation.getBlobMetadata());
View Full Code Here

Examples of org.jclouds.blobstore.BlobStore.createDirectory()

   public void testDirectoryEndingWithSlash() throws InterruptedException {
     String containerName = getContainerName();
     try {
       BlobStore blobStore = view.getBlobStore();
       blobStore.createDirectory(containerName, "someDir");

       // According to the S3 documentation, a directory is nothing but a blob
       // whose name ends with a '/'. So let's try to remove the blob we just
       // created.
       blobStore.removeBlob(containerName, "someDir/");
View Full Code Here

Examples of org.jclouds.blobstore.BlobStore.createDirectory()

   @Test
   void testToStorageMetadata() {
      assertNull(ToStorageMetadata.INSTANCE.apply(null));
      BlobStore blobStore = getBlobStore();
      blobStore.createContainerInLocation(null, "test");
      blobStore.createDirectory("test", "one");
      Set<StorageMetadata> storageMetadataSet = ImmutableSet.<StorageMetadata>builder()
                                                            .addAll(transform(blobStore.list(), ToStorageMetadata.INSTANCE))
                                                            .build();
      assertFalse(storageMetadataSet.isEmpty());
      StorageMetadata representation = storageMetadataSet.iterator().next();
View Full Code Here

Examples of org.jclouds.blobstore.BlobStore.createDirectory()

   @Test
   void testToBlob() {
      assertNull(ToBlob.INSTANCE.apply(null));
      BlobStore blobStore = getBlobStore();
      blobStore.createContainerInLocation(null, "container");
      blobStore.createDirectory("container", "one");

      blobStore.putBlob("container", blobStore.blobBuilder("myblob").payload(ByteSource.wrap("testcontent".getBytes())).build());
      Blob representation = ToBlob.INSTANCE.apply(blobStore.getBlob("container", "myblob"));
      assertNotNull(representation);
      assertNotNull(representation.getBlobMetadata());
View Full Code Here

Examples of org.jitterbit.application.appdir.ApplicationDirectoryFactory.createDirectory()

    @InternalMethod
    public static void initializeApplicationDirectory() throws AppDirInitializationException {
        try {
            AppDirLocationProvider locationProvider = ApplicationConfiguration.getAppDirLocationProvider();
            ApplicationDirectoryFactory factory = ApplicationConfiguration.getAppDirFactory();
            appDir = factory.createDirectory(locationProvider);
            if (appDir == null) {
                throw new AppDirInitializationException("Failed to create the application directory");
            }
        } catch (ApplicationConfigurationException ex) {
            throw new AppDirInitializationException("Failed to create the application directory: " + ex.getMessage(),
View Full Code Here

Examples of org.jnode.net.nfs.nfs2.NFS2Client.createDirectory()

        NFS2Client nfsClient = getNFS2Client();

        CreateDirectoryResult result;
        try {
            result = nfsClient.createDirectory(directoryEntry.getFileHandle(), name,
                DEFAULT_PERMISSION, -1, -1, -1, new Time(-1, -1), new Time(-1, -1));
        } catch (NFS2Exception e) {
            throw new IOException("Can not create the directory " + name + "." + e.getMessage(), e);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.