Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: When should file_path_canonical() be used? (Read 2275 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

When should file_path_canonical() be used?

The foobar2000 SDK is not very well documented, so I am a bit confused ...

If I understand correctly, whenever a metadb_handle is created from a file path, the path should be processed through file_path_canonical(), otherwise it will not be compared correctly with existing metadb_handles.

Could someone please confirm this?

Should file_path_canonical() be used for non-local paths (e.g. http:// URLs) too?  Is there a standard way to convert any types of URL to a standardised form in foobar2000?