Skip to content

File list not working, looks like Dropbox made a serialization change. #606

Description

@Hopasaurus

Listing files recently became intermittent then just plain stopped working.

I dug in and found this line:

https://github.com/andreafabrizi/Dropbox-Uploader/blob/master/dropbox_uploader.sh#L1167

which has this sed command:

local DIR_CONTENT=$(sed -n 's/.*: \[{\(.*\)/\1/p' "$RESPONSE_FILE" | sed 's/}, *{/}\
    {/g')

which looks for colon space open-square-braket.

The issue was that there was no space in between the colon and bracket in the /tmp/du_resp_temp file.

when I changed that to:

local DIR_CONTENT=$(sed -n 's/.*: *\[{\(.*\)/\1/p' "$RESPONSE_FILE" | sed 's/}, *{/}\
    {/g')

everything started working again.

Will see about making a pull request soon but in the mean time wanted to post this in case is saves anyone else a little time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions