commit/galaxy-central: guerler: Api: Ftp files return empty list instead of raising error if directory is missing
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/d404a6f6d01e/ Changeset: d404a6f6d01e User: guerler Date: 2014-10-16 23:47:55+00:00 Summary: Api: Ftp files return empty list instead of raising error if directory is missing Affected #: 1 file diff -r eb28a9bcb4d9ca99613b667300095ce8a52f7ae3 -r d404a6f6d01e6af5cbd35a427c474cee47fe963a lib/galaxy/webapps/galaxy/api/ftp_files.py --- a/lib/galaxy/webapps/galaxy/api/ftp_files.py +++ b/lib/galaxy/webapps/galaxy/api/ftp_files.py @@ -112,8 +112,7 @@ response.append( dict( path = path, size = statinfo.st_size, ctime = time.strftime( "%m/%d/%Y %I:%M:%S %p", time.localtime( statinfo.st_ctime ) ) ) ) - else: - raise exceptions.ConfigDoesNotAllowException( 'The given directory does not exist.' ) + # sort by path response = sorted(response, key=itemgetter("path")) return response Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.
participants (1)
-
commits-noreply@bitbucket.org