Skip to content

File::move_to on mac os x errors when dest is a directory #47

@haroldfrayman

Description

@haroldfrayman

dir /tmp/yyy exists

$file = '/tmp/xxx';
$file->move_to('/tmp/yyy')

file xxx moved to yyy but $file is

Path::Class::File=HASH(0x7fcaa3288a78)
   'dir' => Path::Class::Dir=HASH(0x7fcaa2f7b560)
      'dirs' => ARRAY(0x7fcaa3288d48)
         0  ''
         1  'tmp'
         2  'yyy'
      'file_spec_class' => undef
      'volume' => ''
   'file' => ''
   'file_spec_class' => undef

Other occasions, $file is

Path::Class::File=HASH(0x7fcaa3288a78)
   'dir' => Path::Class::Dir=HASH(0x7fcaa2f7b560)
      'dirs' => ARRAY(0x7fcaa3288d48)
         0  ''
         1  'tmp'
      'file_spec_class' => undef
      'volume' => ''
   'file' => 'yyy'
   'file_spec_class' => undef

Either way, not good

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