Help for this page

Select Code to Download


  1. or download this
    #### https://metacpan.org/pod/Win32API::File
    use Win32API::File qw'GetFileAttributes :FILE_ATTRIBUTE_';
    sub isjunc {
        return GetFileAttributes($_[0]) & FILE_ATTRIBUTE_REPARSE_POINT
    }
    
  2. or download this
        if ( -d ) {  # junctions show up as TRUE for `-d`
            if( isjunc($File::Find::name) ) {
    ...
            }
            ... # go do the stuff I want to do if it's a real directory, a
    +nd not a junction
        }