{"id":16949036,"url":"https://github.com/timoliver/todocumentsdirectorywatcher","last_synced_at":"2025-04-11T20:12:54.633Z","repository":{"id":16783416,"uuid":"19541764","full_name":"TimOliver/TODocumentsDirectoryWatcher","owner":"TimOliver","description":"Automatically observes an iOS app's Documents directory for file changes.","archived":false,"fork":false,"pushed_at":"2019-09-29T15:57:49.000Z","size":229,"stargazers_count":9,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T20:12:50.553Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Objective-C","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/TimOliver.png","metadata":{"files":{"readme":"ReadMe.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-05-07T16:28:02.000Z","updated_at":"2024-03-31T03:36:02.000Z","dependencies_parsed_at":"2022-07-13T13:51:19.852Z","dependency_job_id":null,"html_url":"https://github.com/TimOliver/TODocumentsDirectoryWatcher","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTODocumentsDirectoryWatcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTODocumentsDirectoryWatcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTODocumentsDirectoryWatcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/TimOliver%2FTODocumentsDirectoryWatcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/TimOliver","download_url":"https://codeload.github.com/TimOliver/TODocumentsDirectoryWatcher/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248473124,"owners_count":21109628,"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-10-13T21:52:59.359Z","updated_at":"2025-04-11T20:12:54.606Z","avatar_url":"https://github.com/TimOliver.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TODocumentsDirectoryWatcher\n\n\u003cimg src=\"https://raw.github.com/TimOliver/TODocumentsDirectoryWatcher/master/Screenshots/TODocumentsDirectoryWatcher_iPhone5s.jpg\" alt=\"TODocumentsDirectoryWatcher on iPhone 5s\" width=\"392\" align=\"center\" /\u003e\n\nTODocumentsDirectoryWatcher is an open-source singleton module, designed to observe your iOS app's Documents directory, and post NSNotifiction messages whenever it detects that a file/folder is added, renamed, or deleted within it.\n\nThe goal of this module is to be able to explicilty detect when a user has modified the contents of the Documents folder from outside the app, such as the documents sharing window in iTunes on Mac/PC, even if the app was closed in the interim.\n\nThis originally started off as an implementation in my iOS app, iComic (http://icomics.co) in order to detect when a user had dragged a comic file from their Desktop into the app itself via iTunes, so that the app may start importing/processing the file once it's finished copying. I've made it open-source in the hopes that others may find it useful, and might know of ways to help improve it.\n\n## How to Test\n### iPhone Simulator\n1. Navigate to the iPhone Simulator's Applications directory: *~/Library/Application Support/iPhone Simulator/{iOS Version}/Applications*\n2. Locate the TODocumentsDirectoryWatcher app in the Applications directory, and start adding files into its 'Documents' folder.\n\n### Native iOS Device\nInstructions on how to do iOS documents sharing on native devices is available on Apple's website: http://support.apple.com/kb/ht4094\n\n## Features\n* Can detect when a batch of new files is added to the Documents directory, and will notify the system after all of the files have finished copying.\n* Using the Unix file-system structure, it can detect when files in the Documents directory have been renamed.\n* Can detect when a file has been deleted from the Documents directory.\n* Using cached snapshots of the Documents directory, these file operations can be tracked even if they've occurred while the app was closed.\n* Performs all of its work in serial dispatch queues for maximum responsiveness.\n\n## Technical Requirements\niOS 4.0 or above.\n\n## License\n\nTODocumentsDirectoryWatcher is licensed under the MIT License. Attribution is not required, but it is appreciated!\n- - -\nCopyright 2014 Timothy Oliver. All rights reserved.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to\ndeal in the Software without restriction, including without limitation the\nrights to use, copy, modify, merge, publish, distribute, sublicense, and/or\nsell copies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS\nOR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,\nWHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR\nIN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftodocumentsdirectorywatcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftimoliver%2Ftodocumentsdirectorywatcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftimoliver%2Ftodocumentsdirectorywatcher/lists"}