Looking for files that have been modified recently
来源:互联网 发布:淘宝端口急速退款 编辑:程序博客网 时间:2024/05/17 21:43
NSString *directoryPath = <#Get a path to a directory#>;NSDirectoryEnumerator *directoryEnumerator = [[NSFileManager defaultManager]enumeratorAtPath:directoryPath];NSDate *yesterday = [NSDate dateWithTimeIntervalSinceNow:(-60*60*24)];for (NSString *path in directoryEnumerator) { if ([[path pathExtension] isEqualToString:@"rtfd"]) { // Don't enumerate this directory. [directoryEnumerator skipDescendents];} else { NSDictionary *attributes = [directoryEnumerator fileAttributes]; NSDate *lastModificationDate = [attributesobjectForKey:NSFileModificationDate]; if ([yesterday earlierDate:lastModificationDate] == yesterday) { NSLog(@"%@ was modified within the last 24 hours", path);} }}
0 0
- Looking for files that have been modified recently
- How to revert the code/files that have been merged to the remote Repo
- source insight checking for modified files 问题解决
- [英语歌曲]找到梦中人:What I've been looking for
- Enable displaying files that have no extensions in IIS 6.0
- git ignore modified files
- Maven:No goals have been specified for this build
- No goals have been specified for this build
- No goals have been specified for this build
- Some index files failed to download. They have been ignored, or old ones used instead.
- E: Some index files failed to download. They have been ignored, or old ones used instead.
- E: Some index files failed to download. They have been ignored, or old ones used instead.
- Some index files failed to download. They have been ignored, or old ones used instead
- 恢复勒索病毒“永恒之蓝”中招的文件,ooops,your files have been encrypted!解决方案
- 解决“Some index files failed to download, they have been ignored, or old ones used instead.”
- 解决:Some index files failed to download. They have been ignored, or old ones used instead.
- i have been Written a Hanoi's tower that base on GUI using VC++ development.
- find the top-10 query plans that have been recompiled the most.
- 使用cobbler安装centos
- poj-1703
- XDOJ1181 - 烤面包
- python操作MySQL数据库
- py2exe使用方法——python程序打包
- Looking for files that have been modified recently
- git 代理设置
- 过电压保护器的工作原理图
- 编译安装openssl
- Android中常用的位图操作(View与Bitmap转化、圆角、灰化、提取Alpha、旋转、倒影、剪切……)
- java成长日记
- Mongodb集群搭建的三种方式
- linux 中断编程-简单易懂
- Android利用canvas画各种图形(点、直线、弧、圆、椭圆、文字、矩形、多边形、曲线、圆角矩形)