uperl / File-XDG

Basic implementation of the XDG base directory specification
1 stars 0 forks source link

API = 1 #17

Closed plicease closed 2 years ago

plicease commented 2 years ago

This PR creates an api option to address some wierdisms of the old API without breaking backward compatibility.

  1. The lookup_*_file methods do not require the subdir component be passed in and will instead use the name attribute.
  2. By default Path::Tiny will be used instead of Path::Class. IMO Path::Tiny is better most of the time.

This PR also adds some new features not related or tangentially related to the API change:

  1. the path_class option has been added to change the returned path class object type. You can use one of the pre-canned classes Path::Class, Path::Tiny, File::Spec, or you can roll your own with a code or array reference.

The intent of this PR is to ultimately address #14 #16 and maybe #15