Changeset 1225
- Timestamp:
- May 5, 2010, 1:25:24 PM (13 years ago)
- Location:
- extensions/net.sf.basedb.ftp/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
extensions/net.sf.basedb.ftp/trunk/README
r985 r1225 1 1 == Requirements == 2 2 3 1. BASE 2.1 0.0 or later.3 1. BASE 2.16.0 or later. 4 4 5 5 == Introduction == … … 41 41 FTP clients since that is normally not allowed. The result for certain 42 42 operations is undefined for files and directories that has the same name. 43 43 * BASE 2.16 introduced an option to register files as a link to an external URL. 44 Such files-will show up as read-only in the FTP server. If the file size of an 45 external file is not known it is shown as 0 in the FTP server. 46 44 47 == Tips and tricks == 45 48 -
extensions/net.sf.basedb.ftp/trunk/build.xml
r1025 r1225 46 46 <property name="javac.target" value="1.5" /> 47 47 <property name="javac.encoding" value="UTF-8" /> 48 <property name="depend.jars" value="http://base2.thep.lu.se/base/jars/2.1 0.0" />48 <property name="depend.jars" value="http://base2.thep.lu.se/base/jars/2.16.0" /> 49 49 50 50 <!-- set up classpath for compiling --> -
extensions/net.sf.basedb.ftp/trunk/src/net/sf/basedb/clients/ftp/BaseFtpFile.java
r985 r1225 37 37 import net.sf.basedb.core.Item; 38 38 import net.sf.basedb.core.ItemQuery; 39 import net.sf.basedb.core.Location; 39 40 import net.sf.basedb.core.OwnedItem; 40 41 import net.sf.basedb.core.Path; … … 171 172 public long getSize() 172 173 { 173 return file == null ? 0 : file.getSize();174 return file == null || file.getSize() < 0 ? 0 : file.getSize(); 174 175 } 175 176 … … 260 261 if (file != null) 261 262 { 262 permission = file.hasPermission(Permission.WRITE); 263 permission = file.hasPermission(Permission.WRITE) && 264 file.getLocation() != Location.EXTERNAL; 263 265 } 264 266 else if (directory != null) … … 503 505 { 504 506 // Upload to an existing file 505 dc.reattachItem(file );507 dc.reattachItem(file, false); 506 508 } 507 509 else
Note: See TracChangeset
for help on using the changeset viewer.