//
//  GSPathWatcher.h
//  GlyphsCore
//
//  Created by Georg Seifert on 13.02.22.
//  Copyright © 2022 schriftgestaltung.de. All rights reserved.
//

NS_ASSUME_NONNULL_BEGIN

@protocol GSPathWatcherObserver
#if !TARGET_OS_IOS
- (void)fileForPathDidChange:(NSString *)path;
#endif
@end

#if !TARGET_OS_IOS
@interface GSPathWatcher : NSObject

+ (void)addObserver:(NSObject <GSPathWatcherObserver> *)observer forFile:(NSString *)filePath;

+ (void)addObserver:(NSObject <GSPathWatcherObserver> *)observer forFolder:(NSString *)folderPath;

+ (void)pauseObserver:(NSObject *)observer forPath:(NSString *)filePath;

+ (void)resumeObserver:(NSObject *)observer forPath:(NSString *)filePath;

+ (void)removeObserver:(NSObject *)observer forPath:(NSString *)filePath;

@end
#endif
NS_ASSUME_NONNULL_END
