MEGA65 / mega65-tools

Tools and Utilities for the MEGA65 Retro Computers
GNU General Public License v3.0
28 stars 31 forks source link

mega65_ftp: dir <Tab> refers to local directory instead of remote #170

Open Schwefelholz opened 10 months ago

Schwefelholz commented 10 months ago

Test Environment (required)

Describe the bug Typing dir <Tab> in mega65_ftp lists files in the current local directory instead of the contents of the remote directory. Actually, dir <Tab> shows the very same output as ldir <Tab>.

To Reproduce Steps to reproduce the behavior:

  1. Enter mega65_ftp
  2. Type dir <Tab>
  3. See file list of local directory

Expected behavior dir <Tab> should either show a list of files from the remote directory or nothing at all.

Screenshots

user@computer:~/MEGA65/mega_fs1/Cores/mega65r3-develo-55-ea3508e$ mega65_ftp -i 192.168.10.255
2023-08-25T10:20:10.279Z NOTE SD card is SDHC
MEGA65 SD-Card:/> dir <Tab>
ATTENTION_THIS_COULD_BRICK_YOUR_MEGA65
Changelog.md
README.md
WARNING_TESTS_HAVE_FAILED_SEE_LOGS
extra/
log/
mega65r3-20230816.13-develo-ea3508e.bit
mega65r3-20230816.13-develo-ea3508e.cor
mega65r3-20230816.13-develo-ea3508e.mcs
sdcard-files/
MEGA65 SD-Card:/>
MEGA65 SD-Card:/>
MEGA65 SD-Card:/> ldir
       <DIR> .
       <DIR> ..
       <DIR> extra
       <DIR> log
       <DIR> sdcard-files
           0 ATTENTION_THIS_COULD_BRICK_YOUR_MEGA65
           0 WARNING_TESTS_HAVE_FAILED_SEE_LOGS
        7534 Changelog.md
        1236 README.md
     6949036 mega65r3-20230816.13-develo-ea3508e.bit
     8388608 mega65r3-20230816.13-develo-ea3508e.cor
    23070748 mega65r3-20230816.13-develo-ea3508e.mcs
MEGA65 SD-Card:/>
MEGA65 SD-Card:/>
MEGA65 SD-Card:/> dir
       <DIR> | 2023-07-26 05:16:26  | C64          | c64
       <DIR> | 2023-07-19 05:38:48  | GAMES        | 
       <DIR> | 2023-07-26 10:32:20  | INTRO2       | 
       <DIR> | 2023-07-19 05:38:50  | MODS         | 
       <DIR> | 2023-07-19 05:38:50  | SYSTEM~1     | System Volume Information
      819200 | 2023-07-19 05:38:50  | 1581UTIL.D81 | 
       26461 | 2023-07-19 05:38:50  | AUDIOMIX.M65 | 
       21248 | 2023-07-19 05:38:50  | BANNER.M65   | 
      819200 | 2023-07-19 05:38:50  | BASIC65.D81  | 
      819200 | 2023-07-19 05:38:50  | C64.D81      | 
     4409890 | 2023-07-19 05:38:50  | C64M65~1.COR | C64M65-WIP-V5-B4.cor
     4409890 | 2023-07-19 05:38:50  | C64MEG~1.COR | C64MEGA65-V5-R3.cor
        7104 | 2023-07-19 05:38:50  | C64THUMB.M65 | 
       10240 | 2023-07-19 05:38:52  | C65THUMB.M65 | 
      819200 | 2023-07-19 05:38:52  | COMAL.D81    | 
      819200 | 2023-07-19 05:38:52  | DEMOCOMP.D81 | 
      819200 | 2023-07-19 05:38:52  | ELEVEN.D81   | 
         243 | 2023-07-19 05:38:52  | ETHLOAD.M65  | 
       34292 | 2023-07-19 05:38:52  | FREEZER.M65  | 
      819200 | 2023-07-19 05:38:52  | GEOS65.D81   | 
       84170 | 2023-07-19 05:38:52  | HEAVY.MOD    | 
      819200 | 2023-07-19 05:38:52  | M65DEMO.D81  | 
     8388608 | 2023-07-19 05:38:52  | M65R095.COR  | 
        6464 | 2023-07-19 05:38:54  | M65THUMB.M65 | 
       25582 | 2023-07-19 05:38:54  | MAKEDISK.M65 | 
      819200 | 2023-07-19 05:38:54  | MAPPER65.D81 | 
      131072 | 2023-08-08 18:19:44  | MEGA65.ROM   | 
      131072 | 2023-07-19 05:38:56  | MEGA650.ROM  | 
      131072 | 2023-07-19 05:38:56  | MEGA651.ROM  | 
      131072 | 2023-07-19 05:38:56  | MEGA652.ROM  | 
      131072 | 2023-07-19 05:38:56  | MEGA653.ROM  | 
      819200 | 2023-07-19 05:38:54  | MEGA65C1.D81 | 
     8388608 | 2023-07-19 05:38:56  | MEGA65D2.COR | 
     8388608 | 2023-08-25 11:24:02  | MEGA65~1.COR | mega65r3-20230816.13-develo-ea3508e.cor
       32686 | 2023-07-19 05:38:56  | MEGAINFO.M65 | 
       18678 | 2023-07-19 05:38:56  | MONITOR.M65  | 
       25838 | 2023-07-19 05:38:56  | ONBOARD.M65  | 
       93972 | 2023-07-19 05:38:56  | POPCORN.MOD  | 
       25598 | 2023-07-19 05:38:56  | ROMLOAD.M65  | 
       34288 | 2023-07-19 05:38:56  | SPRITED.M65  | 
      819200 | 2023-07-19 05:38:56  | TCC.D81      | 
      819200 | 2023-07-19 05:38:56  | TEST.D81     | 
      819200 | 2023-07-19 05:38:56  | TOOLDATA.D81 | 
5 Dir(s), 38 File(s)