@ -247,7 +247,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public long lastModified ( File f ) throws IOException {
public long lastModified ( File f ) throws IOException {
return f . lastModified ( ) ;
return FileUtils . lastModified ( f ) ;
}
}
/ * *
/ * *
@ -260,7 +260,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public void setLastModified ( File f , long time ) throws IOException {
public void setLastModified ( File f , long time ) throws IOException {
f . setLastModified ( time ) ;
FileUtils . setLastModified ( f , time ) ;
}
}
/ * *
/ * *
@ -273,7 +273,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public long length ( File path ) throws IOException {
public long length ( File path ) throws IOException {
return path . length ( ) ;
return FileUtils . getLength ( path ) ;
}
}
/ * *
/ * *
@ -630,7 +630,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public boolean isSymLink ( File path ) throws IOException {
public boolean isSymLink ( File path ) throws IOException {
return false ;
return FileUtils . isSymlink ( path ) ;
}
}
/ * *
/ * *
@ -642,7 +642,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public boolean exists ( File path ) {
public boolean exists ( File path ) {
return path . exists ( ) ;
return FileUtils . exists ( path ) ;
}
}
/ * *
/ * *
@ -654,7 +654,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public boolean isDirectory ( File path ) {
public boolean isDirectory ( File path ) {
return path . isDirectory ( ) ;
return FileUtils . isDirectory ( path ) ;
}
}
/ * *
/ * *
@ -666,7 +666,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public boolean isFile ( File path ) {
public boolean isFile ( File path ) {
return path . isFile ( ) ;
return FileUtils . isFile ( path ) ;
}
}
/ * *
/ * *
@ -677,7 +677,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public boolean isHidden ( File path ) throws IOException {
public boolean isHidden ( File path ) throws IOException {
return path . isHidden ( ) ;
return FileUtils . isHidden ( path ) ;
}
}
/ * *
/ * *
@ -689,9 +689,7 @@ public abstract class FS {
* @since 3 . 0
* @since 3 . 0
* /
* /
public void setHidden ( File path , boolean hidden ) throws IOException {
public void setHidden ( File path , boolean hidden ) throws IOException {
if ( ! path . getName ( ) . startsWith ( "." ) ) //$NON-NLS-1$
FileUtils . setHidden ( path , hidden ) ;
throw new IllegalArgumentException (
JGitText . get ( ) . hiddenFilesStartWithDot ) ;
}
}
/ * *
/ * *