bemaniutils icon indicating copy to clipboard operation
bemaniutils copied to clipboard

2dxutils: PermissionError: [Errno 13] Permission denied: '/u'

Open QingQiz opened this issue 1 year ago • 0 comments

The file name during 2dx file parsing may not be a relative path, which will cause a PermissionError

for example:

$ cat  03012_backup.2dx  | xxd | head -n 5

00000000: 2f75 2f68 6f6d 652f 3031 3831 2f64 6174  /u/home/0181/dat
00000010: 2002 0000 7600 0000 6438 3974 6d70 2f32   ...v...d89tmp/2
00000020: 6478 3372 642f 6864 645f 6461 7461 2f66  dx3rd/hdd_data/f
00000030: 696e 616c 2f66 696e 616c 00bf a8c8 0a40  inal/final.....@
00000040: e06a 1840 30c7 0040 2002 0000 13f4 1f00  .j.@0..@ .......

The code will try to create /u/home/0181/dat_{number}.wav

QingQiz avatar Sep 21 '23 12:09 QingQiz