The built-in disk cache.
- (nonnull instancetype)init NS_UNAVAILABLE;
Move the cache directory from old location to new location, the old location will be removed after finish. If the old location does not exist, does nothing. If the new location does not exist, only do a movement of directory. If the new location does exist, will move and merge the files from old location. If the new location does exist, but is not a directory, will remove it and do a movement of directory.
- (void)moveCacheDirectoryFromPath:(nonnull NSString *)srcPath toPath:(nonnull NSString *)dstPath;
func moveDirectory(fromPath srcPath: String, toPath dstPath: String)
old location of cache directory
new location of cache directory