React Native
React Native
Get the Target of a Symbolic Link
See more FileAccess Examples
Demonstrates how to get the target of a symbolic link.Note: This example requires Chilkat v9.5.0.77 or greater.
Chilkat React Native Downloads
import { FileAccess } from '@chilkat/react-native'
function chilkatExample() {
const fac = new FileAccess();
let targetPath: string;
try {
targetPath = fac.symlinkTarget('qa_data/my_symlink');
} catch {
console.log('Failed to get symlink target.');
return;
}
console.log(`target path = ${targetPath}`);
}