Open jesup opened 2 years ago
Looks like there have been recent changes in WPT and spec, which would cover move() and error types, mentioned here.
In regards to '.' and '..', and that both are automatically defined -- could you explain more about what you mean here? I see that there is WPT for checking '.' and '..' as an invalid file name (as currently mentioned in the spec), but not sure what you mean by "inherent assumptions"
Whether we should allow '.' and '..' as valid file name, that's a good question, and somewhat related to https://github.com/whatwg/fs/issues/38 -- perhaps we can discuss that more there.
There are quite a few differences between the web-platform tests and the current spec -- which isn't really surprising, since the spec is still being modified. Some error conditions disagree, I think. There are also tests for move() support, which isn't in the spec.
There also are extensive tests for '.' and '..', and inherent assumptions that both are automatically defined when a directory is created, but that isn't really in the spec (perhaps it's vaguely alluded to by saying filenames are platform dependent, but that's very weak -- and as we discussed, it would be nice to see that go away). The spec needs to be more precise about what the filesystem tree navigation should look like. (Probably it helps use by wasm programs if '.' and '..' are automatically defined when a directory is created, I presume)