Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

use partition.Mountpoint instead of .Device #130

Merged
merged 1 commit into from
May 19, 2024

Conversation

klaernie
Copy link
Contributor

use partition.Mountpoint instead of .Device

Under Windows both properties carry the same value, yet under Linux .Device is the name of the block device like /dev/sdc1 and mountpoint is the place in the filesystem where this device is mounted and where one can access the data in it - like /mnt/insta-sdcard.

Hence when trying to access files like MISC/version.txt, DCIM/fileinfo_list.list or MISC/GIS/dji.gis it will not work.

Switching to .Mountpoint means file access under Linux will start to work, and keep working under Windows.

Type:

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

Camera:

  • GoPro
  • Insta360
  • DJI
  • Android
  • This PR adds a new camera

Component:

  • Core logic
  • Import
  • Merging
  • Firmware Update
  • Video Manipulation

Checklist before approval:

  • Linter pass
  • Build pass

Under Windows both properties carry the same value, yet under Linux
.Device is the name of the block device like /dev/sdc1 and mountpoint is
the place in the filesystem where this device is mounted and where one
can access the data in it - like /mnt/insta-sdcard.

Hence when trying to access files like MISC/version.txt,
DCIM/fileinfo_list.list or MISC/GIS/dji.gis it will not work.

Switching to .Mountpoint means file access under Linux will start to
work, and keep working under Windows.
@KonradIT
Copy link
Owner

Thanks, I'll apply this PR without passing linter / tests and then fix it myself afterwards.

@KonradIT KonradIT merged commit 38fc5bc into KonradIT:development May 19, 2024
1 of 3 checks passed
@klaernie
Copy link
Contributor Author

Cool! Thanks for merging! Once you've fixed the linter and test I'd happily rebase my other PRs.

@klaernie klaernie deleted the mountpoint branch May 20, 2024 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants