IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13278


Ignore:
Timestamp:
May 4, 2007, 4:59:31 PM (19 years ago)
Author:
jhoblitt
Message:

generate instance filenames that leave the "key" at the end so as to not break applications that expect a certain "extension" on the filename

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Nebulous-Server/lib/Nebulous/Server.pm

    r13269 r13278  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.39 2007-05-05 01:41:29 jhoblitt Exp $
     3# $Id: Server.pm,v 1.40 2007-05-05 02:59:31 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    209209    # mange '/'s into ':'
    210210    $filename =~ s|/|:|g;
    211     my $uri = URI::file->new("$vol_path/$filename.$ins_id");
     211    my $uri = URI::file->new("$vol_path/$ins_id.$filename");
    212212    $log->debug("generated uri $uri");
    213213
     
    364364    # mange '/'s into ':'
    365365    $filename =~ s|/|:|g;
    366     my $uri = URI::file->new("$vol_path/$filename.$ins_id");
     366    my $uri = URI::file->new("$vol_path/$ins_id.$filename");
    367367    $log->debug("generated uri $uri");
    368368
  • trunk/Nebulous/lib/Nebulous/Server.pm

    r13269 r13278  
    11# Copyright (c) 2004  Joshua Hoblitt
    22#
    3 # $Id: Server.pm,v 1.39 2007-05-05 01:41:29 jhoblitt Exp $
     3# $Id: Server.pm,v 1.40 2007-05-05 02:59:31 jhoblitt Exp $
    44
    55package Nebulous::Server;
     
    209209    # mange '/'s into ':'
    210210    $filename =~ s|/|:|g;
    211     my $uri = URI::file->new("$vol_path/$filename.$ins_id");
     211    my $uri = URI::file->new("$vol_path/$ins_id.$filename");
    212212    $log->debug("generated uri $uri");
    213213
     
    364364    # mange '/'s into ':'
    365365    $filename =~ s|/|:|g;
    366     my $uri = URI::file->new("$vol_path/$filename.$ins_id");
     366    my $uri = URI::file->new("$vol_path/$ins_id.$filename");
    367367    $log->debug("generated uri $uri");
    368368
Note: See TracChangeset for help on using the changeset viewer.