Code Monkey home page Code Monkey logo

Comments (4)

gturri avatar gturri commented on May 24, 2024

Thank you for your report.

1- I'm not sure I understand why the double slash in the path is an issue since paths "x/y" and "x//y" are interpreted the same way.

2- I didn't know there was such a dokuwiki standard for lowercase plugin name. I'll study it.

Regards

from hiddenswitch.

CompuRoot avatar CompuRoot commented on May 24, 2024

Double slash isn't an issue, but POSIX says

"... A pathname that begins with two successive slashes may be interpreted in an implementation-defined manner,..."
which is means that there no 100% guarantee that it wouldn't be broken.
(well, it applys to pathnames that begining with "//" but IMHO to be safe it is better to avoid it.)

usually "//" used as resurce definition (http://, ftp://)

The primary issue that I wanted to report - come up on Unix based systems after unpacking tar archive that kept case of file names.
"base=hiddenSwitch" but in fact plugin unpacked to "hiddenswitch".
In this case, Dokuwiki can't find "plugin.info.txt" because "hiddenSwitch" and "hiddenswitch" on Unix based file systems are different pathnames.

As about Dokuwiki standard for lower/upper/case filenames - I don't remember where I learned this but I remember it for sure that Dokuwiki use lower case file/directory names to keep portability between file systems which could be case-sensitive and case-insensitive systems.

While I have occasion, I want to say you - Thank you for the plugin

from hiddenswitch.

gturri avatar gturri commented on May 24, 2024

1- Ok, I understand what you mean regarding the double / in paths. Maybe you'd rather open a bugtrack to the project dokuwiki itself since the incriminated piece of code belongs here.

2- I have a better understanding of what you mean: the plugin name and the directory should have the same case.
The issue however, is that I don't understand why you have a lowercased directory: when I download the .tar.gz directly with my browser on https://github.com/gturri/hiddenSwitch/archive/master.tar.gz, or when I give this link to the plugin manager, I get a 'hiddenSwith' directory, therefore I don't have any getinfo() issue.
(And in particular I'm afraid it might break if I change the plugin name to a lowercased one in this case)

More precisely: how do you have such a lowercased directory?

from hiddenswitch.

gturri avatar gturri commented on May 24, 2024

Closing the issue since I can't reproduce the issue, and the last comment is 1 year old.

from hiddenswitch.

Related Issues (1)

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.