From 05b91a7ca0aace044621d8db1e82f4772181d893 Mon Sep 17 00:00:00 2001 From: Jeffrey Armstrong Date: Wed, 14 Apr 2021 10:54:27 -0400 Subject: Fixed binary transfers to maintain file integrity. Added globbed file upload capabilities. Fixed memory overrun issues due to problems parsing ls output. --- player/instructions.f90 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'player/instructions.f90') diff --git a/player/instructions.f90 b/player/instructions.f90 index a3dc97a..1bd25ea 100644 --- a/player/instructions.f90 +++ b/player/instructions.f90 @@ -265,7 +265,11 @@ contains if(.not. all(found,1)) then success = .false. else - success = upload(url, filename) + if(index(filename, "*") > 0 .or. index(filename, "?") > 0) then + success = upload_glob(url, filename) + else + success = upload(url, filename) + end if end if else if(trim(operation) == "download") then -- cgit v1.2.3