[Iplant-api-dev] deleting directories

Ghiban, Cornel ghiban at cshl.edu
Sat May 10 10:17:51 MST 2014


Thanks Rion.

I was hoping it's a bug:) I managed to remove my data home dir.
Oh well.. :)
Cornel

On May 10, 2014 1:13 PM, Rion Dooley <dooley at tacc.utexas.edu> wrote:
Seems to be working. Here’s a quick test of Agave using the CLI and of Foundation using icommands and curl.

# Testing recursive delete using Agave and the iPlant Data Store
dooley$ mkdir agave_recursive_delete_check
dooley$ echo "test file 1" > agave_recursive_delete_check/test1.txt
dooley$ echo "test file 2" > agave_recursive_delete_check/test2.txt
dooley$
dooley$ files-upload -F agave_recursive_delete_check dooley
Creating directory dooley/agave_recursive_delete_check ...
Calling /Users/dooley/workspace/agave-cli/bin/files-mkdir  -N agave_recursive_delete_check dooley
Successfully created folder dooley/agave_recursive_delete_check
######################################################################## 100.0%
Successfully uploaded test1.txt
######################################################################## 100.0%
Successfully uploaded test2.txt
dooley$
dooley$ files-list dooley/agave_recursive_delete_check
.
test1.txt
test2.txt
dooley$ files-delete dooley/agave_recursive_delete_check
Successfully deleted dooley/agave_recursive_delete_check
dooley$
dooley$ files-list dooley/agave_recursive_delete_check
File/folder does not exist
dooley$ rm -rf agave_recursive_delete_check

# Testing recursive delete using Foundation and the iPlant Data Store
dooley$ mkdir foundation_recursive_delete_check
dooley$ echo "test file 1" > foundation_recursive_delete_check/test1.txt
dooley$ echo "test file 2" > foundation_recursive_delete_check/test2.txt
dooley$
dooley$ iput -rf foundation_recursive_delete_check .
dooley$ ils foundation_recursive_delete_check
/iplant/home/dooley/foundation_recursive_delete_check:
  test1.txt
  test2.txt
dooley$ curl -sku "dooley" -X DELETE https://foundation.iplantc.org/io-v1/io/dooley/foundation_recursive_delete_check | python -mjson.tool
Enter host password for user 'dooley':
{
     "status":"success”,
     "message":”",
     "result":{}
}
dooley$ ils foundation_recursive_delete_check
ERROR: lsUtil: srcPath /iplant/home/dooley/foundation_recursive_delete_check does not exist or user lacks access permission
dooley$ rm -rf foundation_recursive_delete_check


--
Rion




On May 10, 2014, at 10:16 AM, Ghiban, Cornel <ghiban at cshl.edu<mailto:ghiban at cshl.edu>> wrote:

Hi,

This question is for both v1 and Agave:

Could you confirm that deleting a directory also removed it's content
(recursively)?

Thanks,
Cornel

_______________________________________________
Iplant-api-dev Mailing List: Iplant-api-dev at iplantcollaborative.org<mailto:Iplant-api-dev at iplantcollaborative.org>
List Info and Archives: http://mail.iplantcollaborative.org/mailman/listinfo/iplant-api-dev
One-click Unsubscribe: http://mail.iplantcollaborative.org/mailman/options/iplant-api-dev/dooley%40tacc.utexas.edu?unsub=1&unsubconfirm=1




More information about the Iplant-api-dev mailing list