We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3054bfc commit 178fce6Copy full SHA for 178fce6
pulledpork.pl
@@ -1715,7 +1715,7 @@ sub get_ignore_files {
1715
## Verify if directories or files actually exist
1716
sub check_file_dir {
1717
my ($filedir_input) = @_;
1718
- my ($dir_check, $file_check) = ($filedir_input =~ /(^.*)\/(.*)$/);
+ my ($dir_check, $file_check) = ($filedir_input =~ /(^.*)(?:\/|\\)(.*)$/);
1719
if (!-d $dir_check && !-w $file_check) {
1720
croak
1721
"Error: $dir_check does not exist, please create this directory\n";
0 commit comments