Page 1 of 1

Duplicated 'size' field in JSON output

Posted: Thu Oct 26, 2017 3:21 am
by linuxmant
Hello, I'm trying to automate the download of a folder using everything but when I get the response from the HTTP server after calling the url for a folder, I get "file" items with two 'size' fields, one is empty and the other has the actual size of the file.
Also the query string parameters for size and date created don't seem to work, I still get those fields in the Json response

Sample call:
'http://localhost/J%3A/My%20Recordings?j ... ize_column'

Response:

Code: Select all

{
	"results": [{
		"type": "folder",
		"name": "MBHBA-music_data",
		"size": "",
		"date_modified": "131253694229441539"
	}, {
		"type": "file",
		"name": "MBHBA-music.aup",
		"size": "",				<<------------ invalid json
		"size": "5205",
		"date_modified": "131253707813107688"
	}]
}
Thanks for the awesome app.

Re: Duplicated 'size' field in JSON output

Posted: Thu Oct 26, 2017 9:58 am
by void
Thanks for the bug report.

Everything is sending the size twice when sorting the results by anything other than name ascending.

The first size: is always blank.

I've fixed the issue for the next release of Everything.
For now, please sort results by name.

Re: Duplicated 'size' field in JSON output

Posted: Fri Oct 27, 2017 12:13 am
by void