Skip to content

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

Description

@QingQiz

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions