Use legacy File::Path API - avoid a dependency (see next commit)
[dbsrgits/DBIx-Class.git] / lib / DBIx / Class / Storage / DBI.pm
index fdfd16e..6d26b87 100644 (file)
@@ -2703,7 +2703,7 @@ sub create_ddl_dir {
   } else {
       -d $dir
         or
-      (require File::Path and File::Path::make_path ("$dir"))  # make_path does not like objects (i.e. Path::Class::Dir)
+      (require File::Path and File::Path::mkpath (["$dir"]))  # mkpath does not like objects (i.e. Path::Class::Dir)
         or
       $self->throw_exception(
         "Failed to create '$dir': " . ($! || $@ || 'error unknown')