Giter Club home page Giter Club logo

Comments (4)

Niky4000 avatar Niky4000 commented on June 14, 2024

I have made a patch for you:
diff --git a/src/main/java/com/guichaguri/minimalftp/handler/FileHandler.java b/src/main/java/com/guichaguri/minimalftp/handler/FileHandler.java
index e22c079..50fc01f 100644
--- a/src/main/java/com/guichaguri/minimalftp/handler/FileHandler.java
+++ b/src/main/java/com/guichaguri/minimalftp/handler/FileHandler.java
@@ -233,7 +233,7 @@
// "-l" is not present in any specification, but chrome uses it
// TODO remove this when the bug gets fixed
// https://bugs.chromium.org/p/chromium/issues/detail?id=706905
- Object dir = args.length > 0 && !args[0].equals("-l") ? getFile(args[0]) : cwd;
+ Object dir = args.length > 0 && !args[0].equals("-l") && !args[0].equals("-a") ? getFile(args[0]) : cwd;

if(!fs.isDirectory(dir)) {
con.sendResponse(550, "Not a directory");
I can't push into your repository and I can't create a new branch and due to that I decided to write down it here.

from minimalftp.

Guichaguri avatar Guichaguri commented on June 14, 2024

Thanks for your contribution!

The -l parameter used to be added by Chromium by misinterpretation of the spec, that's why there is a condition to fix work around that. Is curlftpfs automatically adding the -a parameter to LIST?

Also, just a tip: You can fork the project, make your changes and then create a pull request instead of sending a raw patch.

from minimalftp.

Niky4000 avatar Niky4000 commented on June 14, 2024

Hi, we usually make merge requests at work. I didn't know about pull request. It's my first contribution at GitHub.
I used FileZilla to test it. And FileZilla added that parameter to LIST.
Then I tested it using curlftpfs as far as I remember and it also worked.

from minimalftp.

Guichaguri avatar Guichaguri commented on June 14, 2024

Fair enough, thank you for your contribution :)

from minimalftp.

Related Issues (13)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.