Giter Site home page Giter Site logo

dawesi / lucee-azure-provider Goto Github PK

View Code? Open in Web Editor NEW

This project forked from paulklinkenberg/lucee-azure-provider

0.0 1.0 0.0 14.91 MB

A Lucee resource provider for Azure blob resources

License: GNU General Public License v3.0

ColdFusion 100.00%

lucee-azure-provider's Introduction

#Installing the Lucee Azure CFML resource provider

  1. add to lucee-web.xml.cfm in {your web root}/WEB-INF/lucee/:

    <resource-provider arguments="case-sensitive:false;logging:false" component="AzureBlobResourceProvider" scheme="azure"/>

  2. Copy the contents of WEB-INF/lucee/components/ to {your web root}/WEB-INF/lucee/components/

  3. Copy the contents of WEB-INF/lucee/lib/ to {your web root}/WEB-INF/lucee/lib/

  4. Copy the contents of test/ to {your web root}/test/

  5. Run /test/index.cfm

##Azure blob storage case-sensitivity

In the <resource-provider> tag, you probably noticed we set case-sensitive:false. That's actually a lie, the Azure blob storage system is case-sensitive.

Setting it to false is necessary to work around a feature of Lucee, which was probably created for local filesystems, not (slower) remote ones. The feature is: if we check for existence of a file or directory, and it does not seem to exist, Lucee will retrieve a full directory listing to check if the file/directory exists with different case. (eg. fileExists('test.txt') will match TeSt.TXT, even on a case-sensitive filesystem)

If you work with large blob containers, containing hundreds or thousands of files/directories inside a directory/root, then keep the case-sensitive setting to false. If you set it to true, you might be waiting multiple seconds on a simple fileExists/directoryExists call.

lucee-azure-provider's People

Contributors

paulklinkenberg avatar

Watchers

James Cloos avatar

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.