Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
haroldfrayman opened this issue Jun 17, 2016 · 0 comments
Open

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

haroldfrayman opened this issue Jun 17, 2016 · 0 comments

Comments

@haroldfrayman
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant