Changeset 2937
- Timestamp:
- Nov 20, 2006, 8:33:37 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/core/net/sf/basedb/core/File.java
r2913 r2937 893 893 private static final String separator = java.io.File.separator; 894 894 private static final SimpleDateFormat SUBDIR_FORMAT = 895 new SimpleDateFormat("yyyy-ww"+separator+" F-ss");895 new SimpleDateFormat("yyyy-ww"+separator+"dd-ss"); 896 896 897 897 /** … … 945 945 String absPath = file.getAbsolutePath(); 946 946 String rootPath = Application.getUserFilesDirectory().getAbsolutePath(); 947 String relPath = absPath.replace (rootPath, "");947 String relPath = absPath.replaceFirst(rootPath, ""); 948 948 if (relPath.startsWith(separator)) 949 949 { 950 950 relPath = relPath.substring(separator.length()); 951 951 } 952 relPath = relPath.replace All(separator, "/");952 relPath = relPath.replace(separator, "/"); 953 953 return relPath; 954 954 } … … 962 962 { 963 963 // Convert forward slash to file system separator 964 relativePath = relativePath.replace All("/", separator);964 relativePath = relativePath.replace("/", separator); 965 965 return new java.io.File(Application.getUserFilesDirectory(), relativePath); 966 966 }
Note: See TracChangeset
for help on using the changeset viewer.