metalbear-co / mirrord

Connect your local process and your cloud environment, and run local code in cloud conditions.
https://mirrord.dev
MIT License
3.82k stars 104 forks source link

feature fs - agent mkdir #2221

Open klingenm opened 9 months ago

klingenm commented 9 months ago

Currently, configuring

{
  "feature": {
    "fs": {
      "read_write": "^/mnt/data/.*"
    }
  }
}

will only successfully create "ordinary" file entries in the remote filesystem. If the executable running in mirrord tries to create a directory the remote filesystem the mkdir call will actually be called locally.

The current behaviour is quite confusing, as xstat calls are forwarded to the agent (checking if directory exists) but actual mkdir call is done locally.

danielloader commented 7 months ago

Yeah this has hit me before too, good to see an issue raised.

AlbertZheng commented 5 months ago

Yeah this has hit me too, good to see an issue raised. BTW, rmdir also has the same confusing behaviour. please consider to support too: feature fs - agent rmdir