/** * If true, the last modified time, last access time, * owner, group and permission information of the source * file will be preserved as far as target {@link FileSystem} * implementation allows. */ protected void setPreserve(boolean preserve) { if (preserve) { preserve(FileAttribute.TIMESTAMPS); preserve(FileAttribute.OWNERSHIP); preserve(FileAttribute.PERMISSION); } else { preserveStatus.clear(); } }
/** * If true, the last modified time, last access time, * owner, group and permission information of the source * file will be preserved as far as target {@link FileSystem} * implementation allows. */ protected void setPreserve(boolean preserve) { if (preserve) { preserve(FileAttribute.TIMESTAMPS); preserve(FileAttribute.OWNERSHIP); preserve(FileAttribute.PERMISSION); } else { preserveStatus.clear(); } }
/** * If true, the last modified time, last access time, * owner, group and permission information of the source * file will be preserved as far as target {@link FileSystem} * implementation allows. */ protected void setPreserve(boolean preserve) { if (preserve) { preserve(FileAttribute.TIMESTAMPS); preserve(FileAttribute.OWNERSHIP); preserve(FileAttribute.PERMISSION); } else { preserveStatus.clear(); } }
/** * If true, the last modified time, last access time, * owner, group and permission information of the source * file will be preserved as far as target {@link FileSystem} * implementation allows. */ protected void setPreserve(boolean preserve) { if (preserve) { preserve(FileAttribute.TIMESTAMPS); preserve(FileAttribute.OWNERSHIP); preserve(FileAttribute.PERMISSION); } else { preserveStatus.clear(); } }
/** * If true, the last modified time, last access time, * owner, group and permission information of the source * file will be preserved as far as target {@link FileSystem} * implementation allows. */ protected void setPreserve(boolean preserve) { if (preserve) { preserve(FileAttribute.TIMESTAMPS); preserve(FileAttribute.OWNERSHIP); preserve(FileAttribute.PERMISSION); } else { preserveStatus.clear(); } }