javaunixfilestat's Introduction
FileStat - A Java interface for picking up detailed file information under Linux/Unix. It really collects every bit of information there is. The package is offered without restrictions on its use, but also WITHOUT WARRANTIES OF ANY KIND. Care has been taken to ensure the enclosed software works correctly, but bugs may remain. Feedback, incuding problem reports, is welcome. The interface uses native code to call 'stat(2)' and 'lstat(2)'. This means you have to compile the package on your box to make it work. You must have gcc (or some other C compiler) and preferably make. In the best of worlds, 'make' or 'make all' is the only command you have to run. This is not a very streamlined package, so be prepared for one or two bumps on the road. After successful compilation, copy or symlink 'filestat.so' to one of the directories in the Java property 'java.library.path'. Then test the package by running the following command on one or more sample file paths: java -jar lib/filestat.jar <file path 1> <file path 2> ... Java classes: se.soderstrom.linux.FileStat The class to import and use from Java code. See the comments in the source code. se.soderstrom.linux.SyscallException Exception thrown by methods in the FileStat class if the OS does not allow you to get file information. Among other things it contains the good old errno. se.soderstrom.linux.TestFileStat A class for testing FileStat. Also the class invoked if you run 'java -jar' on filestat.jar. The main program expects one or more file paths to examine. It picks up and prints full information about those files. Then it runs the 'stat' Linux/Unix command. This allows you to check that the Java class really got it right. Enjoy, Hakan Soderstrom, [email protected]
javaunixfilestat's People
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. ๐๐๐
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google โค๏ธ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.