XtreemFS a volume take into all folder path

24 views
Skip to first unread message

Özge AYAZ

unread,
May 17, 2013, 7:55:38 AM5/17/13
to xtre...@googlegroups.com


Hi,

I want to  a volume  take into  all folder path.I  have  nested  folder.
How  this folder  take path ? 
 and  I want  to  delete  into  found  folder.

This  code ;

 public void fulldelete(String vname,String filename) throws PosixErrorException, VolumeNotFoundException, AddressToUUIDNotFoundException, IOException{
        volume=client.openVolume(vname, null, options);
        volume.removeDirectory(userCredentials, filename);
    }

but  this code  just  one  folder  delete.Following  link  this  handle carry out for one available way.But  this  class I  don't  use.


This  link ;

http://code.google.com/p/xtreemfs/source/browse/contrib/hadoop/src/org/xtreemfs/common/clients/hadoop/XtreemFSFileSystem.java?r=7b276902ee03e3a0aec9ff4bf62b405705ff78aa

Help  me . Thank  you  in advance.


Michael Berlin

unread,
May 17, 2013, 8:14:50 AM5/17/13
to xtre...@googlegroups.com
Hi,

You're right. The libxtreemfs for Java currently provides no convenience
function to recursively delete a folder and it's sub folders. You have
to this function on your own.

As you found out, we wrote a recursive deletion in the Hadoop Adapter.
You can copy the code and implement your own recursive delete function.

Feel free to send us a patch and we can also integrate such a
convenience function in the libxtreemfs itself.

Best regards,
Michael

On 05/17/2013 01:55 PM, �zge AYAZ wrote:
>
>
> Hi,
>
> I want to a volume take into all folder path.I have nested folder.
> *_How this folder take path ? _*
> and I want to delete into found folder.
>
> This code ;
>
> public void fulldelete(String vname,String filename) throws
> PosixErrorException, VolumeNotFoundException,
> AddressToUUIDNotFoundException, IOException{
> volume=client.openVolume(vname, null, options);
> volume.removeDirectory(userCredentials, filename);
> }
>
> but this code just one folder delete.Following link this handle
> carry out for one available way.But this class I don't use.
>
>
> This link ;
>
> http://code.google.com/p/xtreemfs/source/browse/contrib/hadoop/src/org/xtreemfs/common/clients/hadoop/XtreemFSFileSystem.java?r=7b276902ee03e3a0aec9ff4bf62b405705ff78aa
>
> Help me . Thank you in advance.
>
>
> --
>
> ---
> You received this message because you are subscribed to the Google
> Groups "XtreemFS" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to xtreemfs+u...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>

Özge AYAZ

unread,
May 18, 2013, 2:09:51 PM5/18/13
to xtre...@googlegroups.com
Hi  ,

This  link  also  use   six  method (deleteXtreemFSDirectory ,deleteXtreemFSDirRecursive ,deleteXtreemFSFile,isXtreemFSFile, isXtreemFSFile ,isXtreemFSDirectory) and  my  delete  problem   solve.

http://code.google.com/p/xtreemfs/source/browse/contrib/hadoop/src/org/xtreemfs/common/clients/hadoop/XtreemFSFileSystem.java?r=7b276902ee03e3a0aec9ff4bf62b405705ff78aa


Thank  you.


2013/5/17 Michael Berlin <michael.ber...@gmail.com>
Hi,

You're right. The libxtreemfs for Java currently provides no convenience function to recursively delete a folder and it's sub folders. You have to this function on your own.

As you found out, we wrote a recursive deletion in the Hadoop Adapter. You can copy the code and implement your own recursive delete function.

Feel free to send us a patch and we can also integrate such a convenience function in the libxtreemfs itself.

Best regards,
Michael


On 05/17/2013 01:55 PM, Özge AYAZ wrote:


Hi,

I want to  a volume  take into  all folder path.I  have  nested  folder.
*_How  this folder  take path ? _*

  and  I want  to  delete  into  found  folder.

This  code ;

  public void fulldelete(String vname,String filename) throws
PosixErrorException, VolumeNotFoundException,
AddressToUUIDNotFoundException, IOException{
         volume=client.openVolume(vname, null, options);
         volume.removeDirectory(userCredentials, filename);
     }

but  this code  just  one  folder  delete.Following  link  this  handle
carry out for one available way.But  this  class I  don't  use.


This  link ;

http://code.google.com/p/xtreemfs/source/browse/contrib/hadoop/src/org/xtreemfs/common/clients/hadoop/XtreemFSFileSystem.java?r=7b276902ee03e3a0aec9ff4bf62b405705ff78aa

Help  me . Thank  you  in advance.


--

---
You received this message because you are subscribed to the Google
Groups "XtreemFS" group.
To unsubscribe from this group and stop receiving emails from it, send

For more options, visit https://groups.google.com/groups/opt_out.



--

--- You received this message because you are subscribed to a topic in the Google Groups "XtreemFS" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/xtreemfs/0tXZuPpDxgY/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to xtreemfs+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages