//
//  FileModel.m
//  zhuxun
//
//  Created by winsoft on 16/7/19.
//
//

#import "FileModel.h"
#import "PhotosCache.h"

@implementation FileModel

- (void)setFileName:(NSString *)fileName
{
    _fileName = fileName;
    
    if ([fileName containsString:@"."]) {
        _fileType = [fileName componentsSeparatedByString:@"."].lastObject;
    }
    
}

- (void)setFileLocalPath:(NSString *)fileLocalPath
{
    _fileLocalPath = fileLocalPath;
   
    
    if (self.birefFileType == BriefFileTypePic) {
        _fileFullLocalPath = [NSString stringWithFormat:@"%@/%@",PhotosMessageDir,fileLocalPath];

    }else  _fileFullLocalPath = [NSString stringWithFormat:@"%@/%@",FileFolderFullRouter,fileLocalPath];
}
@end
