296 void getstat (
void* buf)
const;
323 #if !defined(AIPS_NOLARGEFILE)
325 # if !defined(_LARGEFILE64_SOURCE)
326 # define _LARGEFILE64_SOURCE
329 #if defined(AIPS_DARWIN) || defined(AIPS_BSD)
330 # define fileFSTAT fstat
331 # define fileLSTAT lstat
332 # define fileSTAT stat
333 # define fileSTATFS statfs
335 # define fileFSTAT fstat64
336 # define fileLSTAT lstat64
337 # define fileSTAT stat64
338 # define fileSTATFS statfs64
341 # define fileFSTAT fstat
342 # define fileLSTAT lstat
343 # define fileSTAT stat
344 # define fileSTATFS statfs
static std::atomic< uInt > uniqueSeqnr_p
A sequence number to generate unique file names.
long long Int64
Define the extra non-standard types used by Casacore (like proposed uSize, Size)
void setPermissions(uInt permissions)
Set permission with perm.
uInt statusChangeTime() const
Return the time when the file status was last changed in seconds since 00:00:00 GMT Jan 1...
uInt readPermissions() const
Return the permissions as a decimal value.
const Path & path() const
Returns the pathname of the file.
TableExprNode time(const TableExprNode &node)
Bool isBlockSpecial() const
Check if the file is a block special file.
Path itsPath
Full pathname of the file.
Bool isWritable() const
Check if the file is writable.
String statusChangeTimeString() const
return the time when the file status was last changed as a 26-characters String of the form: Thu Feb ...
String getFSType() const
Return the filesystem type.
void touch()
Update access time and modification time of a file.
Bool canCreate() const
Check if a file can be created.
file does not exist but cannot be created
long groupID() const
Return the groupID of the file.
virtual Int64 size() const
Return the size of the file.
file does not exist and is creatable
void checkTarget(Path &targetName, Bool overwrite, Bool forDirectory=False) const
Check if the new path for a copy or move is valid.
Bool exists() const
Check if the file exists.
Bool isSocket() const
Check if the file is a socket.
int mylstat(const char *path, void *buf) const
Define a function for lstat.
file exists and can be overwritten
Bool isReadable() const
Check if the file is readable.
long userID() const
Return the userID of the file.
Bool isSymLink() const
Check if the file is a symbolic link.
file exists but cannot be overwritten
void getstat(void *buf) const
Get the lstat of this file.
Class to get file information and a base for other file classes.
bool Bool
Define the standard types used by Casacore.
Bool isRegular(Bool followSymLink=True) const
Check if the file is a regular file.
String modifyTimeString() const
Return the time when the file was last modified as a 26-characters String of the form: Thu Feb 3 13:4...
FileWriteStatus getWriteStatus() const
get write status of the file.
static Path newUniqueName(const String &directory, const String &prefix)
Create a new unique path name in the specified directory, with the specified prefix and random traili...
File & operator=(const File &that)
Assignment (copy semantics).
Bool isCharacterSpecial() const
Check if the file is a character special file.
String accessTimeString() const
Return the time when the file was last accessed as a 26-characters String of the form: Thu Feb 3 13:4...
String: the storage and methods of handling collections of characters.
void removeSymLinks()
This function is used by RegularFile and Directory to remove all the links which, when followed...
uInt modifyTime() const
Return the time when the file was last modified in seconds since 00:00:00 GMT Jan 1...
Bool isPipe() const
Check if the file is a pipe.
uInt accessTime() const
Time related fucnctions: Return the time when the file was last accessed in seconds since 00:00:00 GM...
Bool isDirectory(Bool followSymLink=True) const
Check if the file is a directory.
File()
Construct a File object whose Path is set to the current working directory.
Bool isExecutable() const
Check if the file is executable.