Path-Class icon indicating copy to clipboard operation
Path-Class copied to clipboard

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

Open haroldfrayman opened this issue 9 years ago • 0 comments

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

haroldfrayman avatar Jun 17 '16 10:06 haroldfrayman