getRelativeUnixPath method
Implementation
String getRelativeUnixPath(File file) {
final filePath = file.path.replaceFirst(indexFolder.path, '');
var unixFilePath = filePath.replaceAll(path.separator, '/');
if (unixFilePath.startsWith('./')) {
unixFilePath = unixFilePath.substring(2);
} else if (unixFilePath.startsWith('/')) {
unixFilePath = unixFilePath.substring(1);
}
return unixFilePath;
}