Skip to content

URL extension to watch its contents using Swift AsyncStream

License

Notifications You must be signed in to change notification settings

okla/URLWatcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

URLWatcher

URL extension to watch its contents using Swift AsyncStream

Installation

Add URLWatcher.swift to your project

Usage

if let documentsContents = FileManager.default.urls(for: .documentDirectory,
                                                    in: .userDomainMask).first?.contents {
  for await contents in documentsContents {
    print(contents)
  }
}

About

URL extension to watch its contents using Swift AsyncStream

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages