判短文件是否存在

    NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); sql

    NSString *ducumentsDirectory = [paths objectAtIndex:0]; orm

    NSFileManager *fm = [NSFileManager defaultManager]; sqlite

    NSString *FilePath = [NSString stringWithFormat:@"%@%@",ducumentsDirectory,@"/LifeAccount.sqlite"]; string

    if ([fm fileExistsAtPath:FilePath]) { it

        

        return FilePath; object

    } file

相關文章
相關標籤/搜索