| | |
| | | String fileType = getFileType(name); |
| | | |
| | | StringBuffer path = new StringBuffer(128); |
| | | path.append(fileType); |
| | | // path.append(fileType); |
| | | |
| | | Calendar now = new GregorianCalendar(); |
| | | |
| | | path.append('/'); |
| | | path.append(now.get(Calendar.YEAR)); |
| | | path.append(StringUtils.leftPad(String.valueOf(now.get(Calendar.MONTH)), 2, '0')); |
| | | path.append('/'); |
| | | path.append(now.get(Calendar.DAY_OF_MONTH)); |
| | | path.append('/'); |
| | | // path.append('/'); |
| | | // path.append(now.get(Calendar.YEAR)); |
| | | // path.append(StringUtils.leftPad(String.valueOf(now.get(Calendar.MONTH)), 2, '0')); |
| | | // path.append('/'); |
| | | // path.append(now.get(Calendar.DAY_OF_MONTH)); |
| | | // path.append('/'); |
| | | path.append(UUIDUtils.UUID()); |
| | | path.append('.'); |
| | | path.append(QFileUtils.getFileFormat(name)); |