IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 23, 2007, 10:45:08 AM (19 years ago)
Author:
jhoblitt
Message:

change API to generally return true URIs instead of file paths
add support for some what intelligent volume allocations

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous/lib/Nebulous/Util.pm

    r4440 r12961  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Util.pm,v 1.3 2005-06-30 02:35:06 jhoblitt Exp $
     3# $Id: Util.pm,v 1.4 2007-04-23 20:45:08 jhoblitt Exp $
    44
    55package Nebulous::Util;
     
    1414use Log::Log4perl qw( :levels );
    1515use URI;
     16use URI::file;
    1617
    1718my @symbols = qw(
     
    7172    my ( $uri , $flags ) = @_;
    7273
    73     my $path = _get_file_path( $uri );
    74     my $fh = _get_filehandle( $path, $flags );
     74    $uri = URI->new("$uri");
     75
     76    my $fh = _get_filehandle($uri->file, $flags);
    7577
    7678    return $fh;
Note: See TracChangeset for help on using the changeset viewer.