toReleaseFile method

ReleaseFile toReleaseFile({
  1. String? parentPath,
})

Implementation

ReleaseFile toReleaseFile({String? parentPath}) {
  var path = this.path;
  if (parentPath != null && path.startsWith(parentPath)) {
    path = path.substring(parentPath.length);
  }
  var data = FileDataProvider(this);
  var executable =
      hasExecutablePermission || ReleaseBundleZip.isExecutableFilePath(path);

  return ReleaseFile(path, data,
      time: lastModifiedSync(), executable: executable);
}