//
//  NSURL+gmsafekit.h
//  HiSports
//
//  Created by luxiaoming on 16/10/11.
//  Copyright © 2016年 com.ouj. All rights reserved.
//

#import <Foundation/Foundation.h>


/**
 这几个方法都是传nil会崩溃的，所以做一下预防
 */
@interface NSURL (gmsafekit)


+ (NSURL *)safeFileURLWithPath:(NSString *)path;
+ (NSURL *)safeFileURLWithPath:(NSString *)path isDirectory:(BOOL)isDir NS_AVAILABLE(10_5, 2_0);

- (instancetype)safeInitWithString:(NSString *)URLString;

@end
