重命名File

            File completeFile = new File(mFilePath + mFileName);
            if (completeFile.exists()) {
                File fileWithSuffix = new File(getLocalUrl());
                boolean rename = completeFile.renameTo(fileWithSuffix);
                Logger.d(TAG, "Download video success, and rename file!" + rename);
            }

 

posted @ 2015-07-30 14:58  马小豆包  阅读(218)  评论(0编辑  收藏  举报