{"action":"created","issue":{"url":"https://api.github.com/repos/endlos99/xdt99/issues/2","repository_url":"https://api.github.com/repos/endlos99/xdt99","labels_url":"https://api.github.com/repos/endlos99/xdt99/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/endlos99/xdt99/issues/2/comments","events_url":"https://api.github.com/repos/endlos99/xdt99/issues/2/events","html_url":"https://github.com/endlos99/xdt99/issues/2","id":137761479,"number":2,"title":"Adding copy-to-resized-image support","user":{"login":"christopherkobayashi","id":10285168,"avatar_url":"https://avatars.githubusercontent.com/u/10285168?v=3","gravatar_id":"","url":"https://api.github.com/users/christopherkobayashi","html_url":"https://github.com/christopherkobayashi","followers_url":"https://api.github.com/users/christopherkobayashi/followers","following_url":"https://api.github.com/users/christopherkobayashi/following{/other_user}","gists_url":"https://api.github.com/users/christopherkobayashi/gists{/gist_id}","starred_url":"https://api.github.com/users/christopherkobayashi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/christopherkobayashi/subscriptions","organizations_url":"https://api.github.com/users/christopherkobayashi/orgs","repos_url":"https://api.github.com/users/christopherkobayashi/repos","events_url":"https://api.github.com/users/christopherkobayashi/events{/privacy}","received_events_url":"https://api.github.com/users/christopherkobayashi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-03-02T03:33:13Z","updated_at":"2016-03-02T21:07:51Z","closed_at":null,"body":"Hello Ralph,\r\n\r\nI'm one of the growing number of people that have replaced the 40-track ROMs in their disk controller with 80-track ROMs.\r\n\r\nI've been using xdm99.py to extract files from 40-track images and DSDD images, then add them into a fresh 2S1D80T disk image, but that seems to have problems with filenames that start with shell reserved characters (\"*\" and \"-\", for example.\r\n\r\nAttached is a patch that adds a \"-c\" (for copy) flag to xdm99.py.  Usage is:\r\n\r\n./xdm99.py -c 2S1D80T -n /path/to/dest.dsk /path/to/source.dsk\r\n\r\n... and can be used to batch-convert disks like so:\r\n\r\nfor i in *.dsk; do ./xdm99.py -c 2S1D80T -n `echo $i | sed 's,\\.dsk,-80.dsk,g'` $i; done\r\n\r\nI hope that you would consider adding this functionality into the main branch, because it is (to me, at least) very useful.\r\n\r\nCheers,\r\n\r\n-- Chris\r\n\r\n\r\n\r\n[diff-copy.txt](https://github.com/endlos99/xdt99/files/154044/diff-copy.txt)\r\n"},"comment":{"url":"https://api.github.com/repos/endlos99/xdt99/issues/comments/191431204","html_url":"https://github.com/endlos99/xdt99/issues/2#issuecomment-191431204","issue_url":"https://api.github.com/repos/endlos99/xdt99/issues/2","id":191431204,"user":{"login":"endlos99","id":9219317,"avatar_url":"https://avatars.githubusercontent.com/u/9219317?v=3","gravatar_id":"","url":"https://api.github.com/users/endlos99","html_url":"https://github.com/endlos99","followers_url":"https://api.github.com/users/endlos99/followers","following_url":"https://api.github.com/users/endlos99/following{/other_user}","gists_url":"https://api.github.com/users/endlos99/gists{/gist_id}","starred_url":"https://api.github.com/users/endlos99/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/endlos99/subscriptions","organizations_url":"https://api.github.com/users/endlos99/orgs","repos_url":"https://api.github.com/users/endlos99/repos","events_url":"https://api.github.com/users/endlos99/events{/privacy}","received_events_url":"https://api.github.com/users/endlos99/received_events","type":"User","site_admin":false},"created_at":"2016-03-02T21:07:51Z","updated_at":"2016-03-02T21:07:51Z","body":"Hi Chris,\r\n\r\nThanks for the contribution!  I really appreciate the time and effort you spent on making the patch available, instead of just modifying the code in private.\r\n\r\nNow regarding your particular problem, couldn't you just use\r\n\r\n`$ xdm99.py sssd.dsk --resize 720 --set-geometry SSSD80T -o sssd80.dsk`\r\n\r\nWell, you couldn't :smile:, because for some reason I made --resize and --set-geometry mutually exclusive.  So I fixed that in my latest commit, and I also cleaned up the incorrect warnings that you pointed out some time ago.\r\n\r\nPlease let me know if this doesn't cover your use case -- or if something is buggy.\r\n\r\n(And a side question: So if I have a DSDD 80T disk, I can still only use 1600 sectors, right?  Or does 80T not work with DD?)\r\n\r\nRegards\r\nRalph\r\n"}}