Skip to content

Syncing a subfolder on local to root of the device #7

@ameintjes

Description

@ameintjes

Is there a way to set a folder on the local machine to be used as the root for syncing to the device?

In other words only the contents of ./device/ is synced to the root of the esp32

I've tried appending "/device" to the "root" in esp32sync.json then stripping that from the "files" entries

code

{
  "version": 1,
  "syncId": "15c4429b-0bad-427f-8ccd-9ab85242e1ef",
  "root": "/home/user/workspace/blergb",
  "generatedAt": 1768836753392,
  "files": {
    "ble_rgb.py": {
      "size": 6310,
      "mtime": 1768835765980
    },
    "boot.py": {
      "size": 139,
      "mtime": 1739356610257
    },
    "main.py": {
      "size": 14,
      "mtime": 1740562174535
    }
  }
}

becomes

{
  "version": 1,
  "syncId": "15c4429b-0bad-427f-8ccd-9ab85242e1ef",
  "root": "/home/user/workspace/blergb/device",
  "generatedAt": 1768836753392,
  "files": {
    "ble_rgb.py": {
      "size": 6310,
      "mtime": 1768835765980
    },
    "boot.py": {
      "size": 139,
      "mtime": 1739356610257
    },
    "main.py": {
      "size": 14,
      "mtime": 1740562174535
    }
  }
}

... but that didn't work and it feels like I'm working against the intended behavior.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions