NSFileManager打印目录下的文件的函数

NSFileManager *fileManager = [NSFileManagerdefaultManager];

 

[fileManager contentsOfDirectoryAtPath:resourcePath error:nil]

DLog(@"files is %@",[fileManager contentsOfDirectoryAtPath:resourcePath error:nil]);

 

打印结果

files is (

    "20120606125656860.m4r",

    "20120606125709704.m4r",

    "20120606125949460.m4r",

    "20120606130009420.m4r"

)

 

 

 

你可能感兴趣的:(manager)