Skip to content

Program fails when directory/path is not found. (possible JSON issues when / exists in the name from maxroll.gg) #1

@zzwdup

Description

@zzwdup
PS C:\Users\<user>\Downloads\d4lf_yaml_generator\net8.0> .\JsonTest.exe
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\Users\<user>\Downloads\d4lf_yaml_generator\net8.0
**fail:** JsonTest.Worker[0]
      Could not find a part of the path 'C:\Users\<user>\Downloads\d4lf_yaml_generator\net8.0\**Charge**\HotA (Season 3).yaml'.
info: Microsoft.Hosting.Lifetime[0]
      Application is shutting down...

Create missing directory in root of path .\Charge
Run JsonTest.exe again

PS C:\Users\<user>\Downloads\d4lf_yaml_generator\net8.0> .\JsonTest.exe
info: Microsoft.Hosting.Lifetime[0]
      Application started. Press Ctrl+C to shut down.
info: Microsoft.Hosting.Lifetime[0]
      Hosting environment: Production
info: Microsoft.Hosting.Lifetime[0]
      Content root path: C:\Users\<user>\Downloads\d4lf_yaml_generator\net8.0
info: Microsoft.Hosting.Lifetime[0]
      Application is shutting down...
PS C:\Users\<user>\Downloads\d4lf_yaml_generator\net8.0>

.yaml files are created.

Looking at the JSON from maxroll.gg Im guessing the script is getting tripped up '/' in the name.
{"name":"Charge/HotA (Season 3)" & {"name":"Charge/Hota OP (Season 3)"

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