{"id":13400907,"url":"https://github.com/hanwen/go-mtpfs","last_synced_at":"2025-04-12T18:53:29.577Z","repository":{"id":3099996,"uuid":"4125413","full_name":"hanwen/go-mtpfs","owner":"hanwen","description":"Mount MTP devices over FUSE","archived":false,"fork":false,"pushed_at":"2023-11-24T23:25:38.000Z","size":284,"stargazers_count":697,"open_issues_count":30,"forks_count":86,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-04-03T22:08:51.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hanwen.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-04-24T14:16:36.000Z","updated_at":"2025-03-26T16:33:39.000Z","dependencies_parsed_at":"2024-06-18T20:00:49.293Z","dependency_job_id":"6eadfccc-bc15-4afa-939d-dc53ac151d38","html_url":"https://github.com/hanwen/go-mtpfs","commit_stats":{"total_commits":223,"total_committers":19,"mean_commits":"11.736842105263158","dds":"0.13452914798206284","last_synced_commit":"42254b1935eb89625d0c8b61bb8128db2cd3c22f"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwen%2Fgo-mtpfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwen%2Fgo-mtpfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwen%2Fgo-mtpfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hanwen%2Fgo-mtpfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hanwen","download_url":"https://codeload.github.com/hanwen/go-mtpfs/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248618253,"owners_count":21134200,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-30T19:00:56.820Z","updated_at":"2025-04-12T18:53:29.556Z","avatar_url":"https://github.com/hanwen.png","language":"Go","funding_links":[],"categories":["Go","Built On"],"sub_categories":["Kafka"],"readme":"### INTRODUCTION\n\nGo-mtpfs is a simple FUSE filesystem for mounting Android devices as a\nMTP device.\n\nIt will expose all storage areas of a device in the mount, and only\nreads file metadata as needed, making it mount quickly. It uses\nAndroid extensions to read/write partial data, so manipulating large\nfiles requires no extra space in /tmp.\n\nIt has been tested on various flagship devices (Galaxy Nexus, Xoom,\nNexus 7).  As of Jan. 2013, it uses a pure Go implementation of MTP,\nwhich is based on libusb.\n\n\n\n### COMPILATION\n\n* Install the Go compiler suite; e.g. on Ubuntu:\n```\nsudo apt-get install golang-go\n```\n* Install libmtp header files\n```\nsudo apt-get install libusb1-devel\n```\n* Then check out go-mtpfs, and run\n```\ngo build ./\n```\n  This will leave a binary `go-mtpfs`\n\n* You may need some tweaking to get libusb to compile.  See the\n  comment near the top of https://github.com/hanwen/usb/usb.go.\n\n* 32-bit and 64-bit linux x86 binaries are at\n\n  https://hanwen.home.xs4all.nl/public/software/go-mtpfs/\n\n\n### USAGE\n```\nmkdir xoom\ngo-mtpfs xoom \u0026\ncp -a ~/Music/Some-Album xoom/Music/\nfusermount -u xoom\n```\nAfter a file is closed (eg. if \"cp\" completes), it is safe to unplug\nthe device; the filesystem then will continue to function, but\ngenerates I/O errors when it reads from or writes to the device.\n\n\n### CAVEATS\n\n* It does not implement rename between directories, because the\n  Android stack does not implement it.\n\n* It does not implement Event handling, ie. it will not notice changes\n  that the phone makes to the media database while connected.\n\n* Some Sony Xperia devices claim to implement Android extension, but\n  don't. See [issue\n  #104](https://github.com/hanwen/go-mtpfs/issues/104). Symptom:\n\n     AndroidGetPartialObject64 failed: OperationNotSupported\n\n  In this case, disable Android extensions with the flag -android=0\n\n\n### FEEDBACK\n\nYou can send your feedback through the issue tracker at\nhttps://github.com/hanwen/go-mtpfs\n\n\n### DISCLAIMER\n\nThis is not an official Google product.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanwen%2Fgo-mtpfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhanwen%2Fgo-mtpfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhanwen%2Fgo-mtpfs/lists"}