您的位置:首页 > 运维架构 > Linux

如何在Linux操作系统查看文件创建时间

2011-06-21 13:10 691 查看
 

- (void)removeFileWithName:(NSString *)fileName
{
// you need to write a function to get to that directory
NSString *filePath = [[self stringForDocumentDirectroy]stringByAppendingPathComponent:fileName];
NSFileManager *fileManager = [NSFileManager defaultManager];
if ([fileManager fileExistsAtPath:filePath])
{
NSError *error;
if (![fileManager removeItemAtPath:filePath error:&error])
{
NSLog(@"Error removing file: %@", error);
}
else
{
NSLog(@"successed removed file");
}
}
}


 其中 [self stringForDocumentDirectroy]是document目录,
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: