Commit fda3e922 authored by Roland Haas's avatar Roland Haas
Browse files

adapt showcase code to Nearline being read-only

parent ac440be5
......@@ -58,12 +58,11 @@ foxfile = "%s/%s-foxfile" % (os.getcwd(), os.environ["USER"])
with open(foxfile, "w") as fh:
fh.write("The quick brown fox jumps over the lazy dog\n")
# copy to Nearline
nearline_foxfile = "~/foxfile"
print("Copying %s to Nearline %s" % (foxfile, nearline_foxfile))
transfer = helper.transfer(globushl.EP_BLUEWATERS_DUO, globushl.EP_NEARLINE,
[(foxfile, nearline_foxfile)], synchronous=True)
# list on Nearline
print("Your projecst on Nearline are:")
files =, "~")
for file in files:
print(file if files[file]['type'] == "dir")
# duplicate on BW
houndfile = "%s/%s-houndfile" % (os.getcwd(), os.environ["USER"])
......@@ -89,7 +88,6 @@ print(list(files.keys()))
# get rid of files
print("Removing files")
delete1 = helper.delete(globushl.EP_NEARLINE, nearline_foxfile)
delete2 = helper.delete(globushl.EP_BLUEWATERS_DUO, [harefile, kenneldir], recursive=True)
print("Success: %s, %s" % (delete1['status'], delete2['status']))
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment