>
> File f1 = new File( "test" );
> File f2 = new File( "TEST" );
>
> if ( !f1.equals( f2 ) ) {
>   if ( f1.createNewFile() != f2.createNewFile() ) {
>     // Case insensitive but name preserving
>   } else {
>     // case sensitive
>   }
> } else {
>  // case insensitive
> }
>
> Maybe someone else has a better idea ?

A good generic solution.

Was wondering, could there be a Use Case where FtpServer is being
purely used for Read-Only purpose (running from an account with RX
permission) and may not have write permission. (Assuming logging is
disabled or to a common folder).

Is OS name not sufficient for this? Agree that it leads to hard-coding.

- ashish

Reply via email to