Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

缺失本地文件提取方法 #9

Open
zhaowensky opened this issue Apr 12, 2017 · 1 comment
Open

缺失本地文件提取方法 #9

zhaowensky opened this issue Apr 12, 2017 · 1 comment

Comments

@zhaowensky
Copy link

1.文件下载到本地、需要使用,但没有提供外部访问接口,建议加上

  • (NSString*)filePath:(NSString *)url
    {
    NSString *temp = HSFileFullpath(url);
    NSFileManager *fileManager = [NSFileManager defaultManager];
    if ([fileManager fileExistsAtPath:temp]){
    return temp;
    }else{
    return nil;
    }
    }

2.文件类型参数缺失,会导致无效文件,建议修改
//#define HSFileName(url) url.md5String
// 保存文件名
#define HSFileName(url) [NSString stringWithFormat:@"%@.%@",url.md5String,[url lastPathComponent]]

@a22aaass
Copy link

你好,我这边在下载zip完成的时候,获取缓存的地址来解压,但是不知道为何解压失败了?但是我在mac运行zip包是可以解压的,麻烦可以回复一下吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants