mirror of
https://github.com/osnr/TabFS.git
synced 2024-05-03 14:23:11 +02:00
Report ENOTSUP for Mac xattr files.
Lets me open png files (in Preview) in tree/, at least!
This commit is contained in:
parent
73f8bc754e
commit
b18fc10e14
|
@ -5,6 +5,7 @@ const unix = {
|
|||
EINTR: 4,
|
||||
EIO: 5,
|
||||
ENXIO: 6,
|
||||
ENOTSUP: 45,
|
||||
|
||||
// Unix file types
|
||||
S_IFMT: 0170000, // type of file mask
|
||||
|
@ -118,6 +119,8 @@ const router = {
|
|||
const tabId = parseInt(pathComponent(path, -3));
|
||||
const suffix = pathComponent(path, -1);
|
||||
|
||||
if (suffix.startsWith("._")) throw new UnixError(unix.ENOTSUP);
|
||||
|
||||
if (!debugged[tabId]) throw new UnixError(unix.EIO);
|
||||
|
||||
await sendDebuggerCommand(tabId, "Page.enable", {});
|
||||
|
|
Loading…
Reference in a new issue