C++ library for renaming/moving/organizing files [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and m开发者_JS百科ore. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this questionI have a bunch of .mp3 files with really lousy names, and im looking to write a program that can rename each and every one into a legitamate recognizing name. I am looking for a library that could
- get the name of a mp3 file, and rename that file
- create new directories, and move certain files
If anyone knows a good library to use, or if C++ already has it built in, let me know please!
Thanks alot!
Give Boost Filesystem http://www.boost.org/doc/libs/release/libs/filesystem/index.html a try.
I suggest using Boost.Filesystem.
rename()
is in the standard library.
For most of the rest, consider Boost Filesystem.
If I were you, I would use boost::filesystem.
boost::filesystem seems like the winner, but QDir and QFile are pretty nice too. I've been happy with how Qt does things in a platform invisible (to me) way. If you don't want to check out boost for some reason, you may want to consider Qt.
I'm not saying anything negative about boost, I just figured this might be a helpful alternative.
精彩评论