Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What does filesListFolderContinue return? #2

Open
derhofbauer opened this issue Dec 11, 2017 · 2 comments
Open

What does filesListFolderContinue return? #2

derhofbauer opened this issue Dec 11, 2017 · 2 comments
Assignees
Labels
Milestone

Comments

@derhofbauer
Copy link
Owner

derhofbauer commented Dec 11, 2017

Since something could be deleted, we will want to handle this case too.

@derhofbauer derhofbauer self-assigned this Dec 11, 2017
@derhofbauer derhofbauer added this to the v1.0 milestone Dec 11, 2017
@derhofbauer
Copy link
Owner Author

derhofbauer commented Dec 11, 2017

adding folder:

{
  "entries": [
    {
      ".tag": "folder",
      "name": "hias",
      "path_lower": "/.dotfiles/testfolder/hias",
      "path_display": "/.dotfiles/testfolder/hias",
      "id": "id:hjbI7R4GnTYAAAAAAAw3og"
    }
  ],
  "cursor": "AAGFoBfwtXRBXu5-BFGP1h5LsNdHfuSgw0eQVVGKG-B9Tr1XpZx2m7dleP5dU46LUUb107jpkCX6AEUMPm0a2zB6qoOjS-jVrxQlyBAchDxCgfj7qneWZmqlZLigd7DX0o1WwC5ZUVp3UobU_VyquVbn1jDNybbYlUUEN3o992mPGU-HQHb8vPcsrYF9CQEYRKQe79LTBCu-AGWlRX_pmw7BMUZWy-XYWv4Kv7Q8-t5mYg",
  "has_more": false
}

delete something

{
  "entries": [
    {
      ".tag": "deleted",
      "name": "hurz",
      "path_lower": "/.dotfiles/testfolder/hurz",
      "path_display": "/.dotfiles/testfolder/hurz"
    }
  ],
  "cursor": "AAH79Ez-L55SMA2j0XCm-9Fgo4thj1aGxIGMUnVS77jlWFspjVwNiKh1jJi51oNnYXEpwY9ApJiyH2Q3I3BxY1Dwq7g25C0RB05DXRwWLFopW1pJtlQFtTavDnet58gSXDpH96horEfWqT3LQ97WEeukluR4M-8ZcTVb1HFdqrvCEBJpVHaTDoLbHwACgFmvkjDMaUdKi2MYTcMw1YdWlRUxuLGg-ReKoBiFxJ_CrZ84QQ",
  "has_more": false
}

renaming something

{
  "entries": [
    {
      ".tag": "deleted",
      "name": "öööhm.desktop",
      "path_lower": "/.dotfiles/testfolder/öööhm.desktop",
      "path_display": "/.dotfiles/testfolder/öööhm.desktop"
    },
    {
      ".tag": "file",
      "name": "ööhm.desktop",
      "path_lower": "/.dotfiles/testfolder/ööhm.desktop",
      "path_display": "/.dotfiles/testfolder/ööhm.desktop",
      "id": "id:hjbI7R4GnTYAAAAAAAxE9w",
      "client_modified": "2018-01-03T14:39:22Z",
      "server_modified": "2018-01-19T16:06:54Z",
      "rev": "2eb9ff00581235",
      "size": 166,
      "content_hash": "4371a1915c4740caec69e4b561fac2bd4de3b3ebf7974ba24f9b09f968fce1ca"
    }
  ],
  "cursor": "AAHf0rM1vQJWjmddr918qk5GfOzxkl_nMuviKDV5WVBGdnCDhBpidizh4-ke8OycSbz9q_ywBLm6dJVik1jEBhgtMQwn0VBo-dR8eY7nW4auzrUVa1EC0WB-TEXbgsA7kkjCFBZPv8iayRv6kYV53V_IlqpD-nC_6xnjM6ZgAbOnB8YmBeKms9YwYf9_FlW1zoV3vTw1UTrr_7n6ZmZZ-JE3XQ093XTrtbO6pJnDqp1V4Q",
  "has_more": false
}

@derhofbauer derhofbauer added question and removed bug labels Jan 3, 2018
@derhofbauer
Copy link
Owner Author

derhofbauer commented Mar 9, 2018

renaming a folder gives a delete AND new event

{
  "entries": [
    {
      ".tag": "deleted",
      "name": "test2hihi.txt",
      "path_lower": "/.dotfiles/testfolder/foobar/test2hihi.txt",
      "path_display": "/.dotfiles/testfolder/foobar/test2hihi.txt"
    },
    {
      ".tag": "deleted",
      "name": "bar",
      "path_lower": "/.dotfiles/testfolder/foobar/bar",
      "path_display": "/.dotfiles/testfolder/foobar/bar"
    },
    {
      ".tag": "deleted",
      "name": "foobar",
      "path_lower": "/.dotfiles/testfolder/foobar",
      "path_display": "/.dotfiles/testfolder/foobar"
    },
    {
      ".tag": "folder",
      "name": "foo",
      "path_lower": "/.dotfiles/testfolder/foo",
      "path_display": "/.dotfiles/testfolder/foo",
      "id": "id:hjbI7R4GnTYAAAAAAAxj_w"
    },
    {
      ".tag": "folder",
      "name": "bar",
      "path_lower": "/.dotfiles/testfolder/foo/bar",
      "path_display": "/.dotfiles/testfolder/foo/bar",
      "id": "id:hjbI7R4GnTYAAAAAAAxkAQ"
    },
    {
      ".tag": "file",
      "name": "test2hihi.txt",
      "path_lower": "/.dotfiles/testfolder/foo/test2hihi.txt",
      "path_display": "/.dotfiles/testfolder/foo/test2hihi.txt",
      "id": "id:hjbI7R4GnTYAAAAAAAxkAg",
      "client_modified": "2018-01-10T09:39:36Z",
      "server_modified": "2018-03-09T15:00:49Z",
      "rev": "2f417300581235",
      "size": 12,
      "content_hash": "46526d5f6dc1d0b1350a533d152833b7286a0635a76c7e9a0844479eea85e26c"
    }
  ],
  "cursor": "AAHCoz4cwO3JX-af0JqKI975rpYwqg4ZbBHMkWv-Ze5RgyDHydvJHBkFUK9Ea-DlkNxenzThdNaA0_uIMUhi5id_BlGDmGCTKmgIaveABGQ-ezUgBu7oKW5R8ZtTP6fOU8UnzgCsBGL6HuA8C02IoF5OdveYin23ls_fDpVrNPiXlkhVl6xRp43_ptOOTsbJFMbbFlvfiBZFuFrjYDB4jDUPeKI6e9F1c39eZwsNjvBBGA",
  "has_more": false
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant