清华大佬耗费三个月吐血整理的几百G的资源,免费分享!....>>>
1 2 3 4 5 6 7 8 | $dh = opendir( '/dev/disk/by-uuid/' ); while ( $file = readdir( $dh )){ if ( is_link ( '/dev/disk/by-uuid/' . $file )){ if ( realpath ( '/dev/disk/by-uuid/' . $file ) == '/dev/sda1' ){ echo 'Found uuid=' . $file .PHP_EOL; } } } |