source: other-projects/trunk/gs3-release-maker/tasks/antelope/src/ise/antelope/tasks/typedefs/file/IsHidden.java@ 14627

Last change on this file since 14627 was 14627, checked in by oranfry, 17 years ago

initial import of the gs3-release-maker

File size: 502 bytes
Line 
1package ise.antelope.tasks.typedefs.file;
2
3import java.io.*;
4
5/**
6 * Copyright 2003
7 *
8 * @version $Revision: 1.1 $
9 */
10public class IsHidden implements FileOp {
11
12 /**
13 * Checks if the given file is a hidden file
14 *
15 * @param f a file
16 * @return true if the file is a hidden file.
17 */
18 public String execute(File f) {
19 if (f == null)
20 throw new IllegalArgumentException("file cannot be null");
21 return f.isHidden() ? "true" : "false";
22 }
23}
24
25
Note: See TracBrowser for help on using the repository browser.