Closed samsquanch01 closed 2 years ago
The problem is a side-effect of the command running from inside the .phar
file.
As this only goes up two levels, when within the archive, it will end up with the phar file name and also will have the phar://
protocol prepended. Phar archives are read-only, so this will naturally lead to an error.
A fix is supplied in #7.
I think the error is here: Writing json file...
This is trying to write tabs.json into a file not a folder,ie directory. Path needs to be changed to phar://C:/adb/android-chrome-tab-transfer-main/android-chrome-tab-transfer-main/tabs.json ?
PS C:\adb\android-chrome-tab-transfer-main\android-chrome-tab-transfer-main> .\copy-tabs.cmd The adb executable is available. Running adb command...
In CopyTabsCommand.php line 257:
Failed to write json file!
copy-tabs [-p|--port PORT] [-s|--socket SOCKET] [--] []
PS C:\adb\android-chrome-tab-transfer-main\android-chrome-tab-transfer-main>